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

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 31 22:02:02 GMT 2026


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 <jason@gcc.gnu.org>:
> 
> https://gcc.gnu.org/g:2a128109493455c4812d2b370327640dd62d29c0
> 
> commit r17-2863-g2a128109493455c4812d2b370327640dd62d29c0
> Author: Jason Merrill <jason@redhat.com>
> 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?


More information about the Gcc-bugs mailing list