[Bug c++/126481] [17 regression] Qt's q plugin.h rejected (default member initializer for '...’ required before the end of its e nclosing class)

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]> Mon, 03 Aug 2026 21:56:22 +0000
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D126481

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <[email protected]>:

https://gcc.gnu.org/g:4569067c6f5206e97a319ec6bfa4e3446b3a41d1

commit r17-2912-g4569067c6f5206e97a319ec6bfa4e3446b3a41d1
Author: Jason Merrill <[email protected]>
Date:   Sat Aug 1 00:17:45 2026 -0400

    c++: early DMI and constructor default arg [PR126606]

    This testcase demonstrates that the issue in 126481 was not the {} but
    the member of class type.

            PR c++/126606
            PR c++/126481

    gcc/cp/ChangeLog:

            * parser.cc (cp_parser_early_parsing_nsdmi): Check
            MAYBE_CLASS_TYPE_P instead of {}.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/nsdmi-defer9.C: New test.=