[Bug c++/102775] Error recovery in the C++ parser should use fix-it hints

2023-08-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102775 --- Comment #2 from Jonathan Wakely --- Here's another example: #include int i = numeric_limits::digits10; lim.cc:2:9: error: 'numeric_limits' was not declared in this scope; did you mean 'std::numeric_limits'? 2 | int i = numeric_limits:

[Bug c++/102775] Error recovery in the C++ parser should use fix-it hints

2021-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102775 --- Comment #1 from Jonathan Wakely --- P.S. this would have to done on a case-by-case basis, i.e. for each fix-it that the compiler currently supports, decide how confident we are in that being correct most of the time, and decide whether to us