[Bug c++/101232] Bad error message with stray semicolon in initializer

2024-07-18 Thread franek.witt at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101232 --- Comment #9 from Franciszek Witt --- I have implemented the improvement mentioned by Jason and also added the hint about missing comma or operator. This patch fails testsuite/g++.dg/parse/error59.C but it was intended to check for ICE (see PR

[Bug c++/101232] Bad error message with stray semicolon in initializer

2024-07-18 Thread franek.witt at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101232 --- Comment #8 from Franciszek Witt --- Created attachment 58700 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58700&action=edit [patchv2] improvements to the previous patch

[Bug c++/101232] Bad error message with stray semicolon in initializer

2024-07-09 Thread franek.witt at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101232 --- Comment #7 from Franciszek Witt --- I believe it might also be worth reporting that a comma or an operator is likely missing in case the braces.require_close failed and the next token is not ';' (this is just a heuristic, some better conditi

[Bug c++/101232] Bad error message with stray semicolon in initializer

2024-07-04 Thread franek.witt at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101232 Franciszek Witt changed: What|Removed |Added CC||franek.witt at gmail dot com --- Comm