2 ms·
C++ is very hard to parse. For non-parseable C++, it is even harder to recover, that is, figure out where to restart parsing. The classic example is forgetting
by Someone 5y ago
C++ is very hard to parse. For non-parseable C++, it is even harder to recover, that is, figure out where to restart parsing.
The classic example is forgetting to end a typedef struct foo with a semicolon, at the end of an #include file.
The compiler will happily combine that with whatever follows the #include# statement in the file including it, and report an error with a line number in the file doing the #include.