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

"ppalka 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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to GCC Commits from comment #4)
> 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.
Could we also check the type of the field so that e.g. only non-scalar {} gets
deferred?
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.