2 ms·
Have you ever seen GCC or Clang give more than one error message for a program? They're able to provide more than one error message because they correct the fir
by chrisseaton 5y ago
Have you ever seen GCC or Clang give more than one error message for a program? They're able to provide more than one error message because they correct the first error, and then continue parsing.
- vincent-manis 5y agoFor some value of “correct”. Actually, it's often more like skipping a few tokens until some kind of synchronization point (e.g., a semicolon) is reached. It's good manners for a compiler that does this to refuse to produce a binary.