https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760

--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:6fec511f2d23cc70ab29d1ba79c2415ab51bcb60

commit r14-8967-g6fec511f2d23cc70ab29d1ba79c2415ab51bcb60
Author: Marek Polacek <pola...@redhat.com>
Date:   Tue Feb 13 16:21:32 2024 -0500

    c++: adjust the extra ; warning [PR113760]

    A minimal fix to quash an extra ; warning.  I have a more complete
    patch for GCC 15.

            DR 1693
            PR c++/113760

    gcc/cp/ChangeLog:

            * parser.cc (cp_parser_member_declaration): Only pedwarn about an
extra
            semicolon in C++98.

    gcc/testsuite/ChangeLog:

            * g++.dg/semicolon-fixits.C: Run in C++98 only.
            * g++.dg/warn/pedantic2.C: Adjust dg-warning.
            * g++.old-deja/g++.jason/parse11.C: Adjust dg-error.
            * g++.dg/DRs/dr1693-1.C: New test.
            * g++.dg/DRs/dr1693-2.C: New test.

Reply via email to