https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64228
--- Comment #2 from Jonny Grant <jg at jguk dot org> --- (In reply to Andrew Pinski from comment #1) > The trunk show: > <source>: In function 'int main()': > <source>:7:30: error: expected ';' before string constant > 7 | std::cout << "oops " << i " number" << endl; > | ^~~~~~~~~~ > | ; > > Error recovery is always hard even saying << might be wrong when you want +. Hi Andrew You're right. The suggestion might not be what was desired. The caret location is enough to help programmer fix the build error.