[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-05-15 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-05-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #18 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:0b3eac4b54a52bf206b88743d1e987badc97cff4 commit r15-522-g0b3eac4b54a52bf206b88743d1e987badc97cff4 Author: Marek Polacek Date: Mo

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #17 from Marek Polacek --- Partially fixed for GCC 14. Leaving this open for more changes in GCC 15.

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #16 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:6fec511f2d23cc70ab29d1ba79c2415ab51bcb60 commit r14-8967-g6fec511f2d23cc70ab29d1ba79c2415ab51bcb60 Author: Marek Polacek Date: T

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #15 from Marek Polace

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #14 from Marek Polacek --- My current patch appears to handle that correctly: $ ./cc1plus -quiet q.C -pedantic-errors -std=c++98 -Wno-error=extra-semi q.C:3:3: warning: extra ‘;’ outside of a function only allowed in C++11 [-Wextra-

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #13 from Harald van Dijk --- (In reply to Marek Polacek from comment #12) > Thank for your comment. In the end I went with > > -std=c++03 -pedantic-errors -Wextra-semi -> warnings > -std=c++03 -pedantic -Wextra-semi -> warnings (no

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #12 from Marek Polacek --- Thank for your comment. In the end I went with -std=c++03 -pedantic-errors -Wextra-semi -> warnings -std=c++03 -pedantic -Wextra-semi -> warnings (not pedwarn) based on the principle that a more specific

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #10 from Marek Polacek --- And we should also warn in C++98 with -Wc++11-extensions for an extra ';' outside of a function I suppose...

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #9 from Marek Polacek --- And: -pedantic-errors -> errors only in C++03

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #8 from Marek Polacek --- (In reply to Jakub Jelinek from comment #7) > g++ emits 4 errors on > struct S > { > void foo () {} > void bar () {}; > void baz () = delete; > void qux () = delete; > ; > void corge () = delete;

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 Jonathan Wakely changed: What|Removed |Added Summary|gcc rejects valid |[DR1693] gcc rejects valid