To parse C++ you need to perform typecheck and name resolution at the same time. And C++ is pretty complex so it's not a easy task.