[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]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126481

--- Comment #4 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:2a128109493455c4812d2b370327640dd62d29c0

commit r17-2863-g2a128109493455c4812d2b370327640dd62d29c0
Author: Jason Merrill <[email protected]>
Date:   Fri Jul 31 13:45:48 2026 -0400

    c++: early DMI parsing and {} [PR126481]

    Here I thought that only name lookup and use of 'this' could change in a
    complete class context, but this testcase demonstrates that an init-list
    also needs deferred parsing.

            PR c++/126481

    gcc/cp/ChangeLog:

            * parser.cc (cp_parser_early_parsing_nsdmi): Also defer {}.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/nsdmi-defer8.C: New test.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.