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.

Reply via email to