[Bug c++/106233] [11 Regression] Designated initializers targeting inherited fields breaks reshape_init_class, at cp/decl.c:6456

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 19 12:06:55 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106233

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.5                        |12.0
      Known to work|                            |12.0
      Known to fail|                            |11.5.0
             Status|NEW                         |RESOLVED
           Keywords|ice-on-valid-code           |ice-on-invalid-code
         Resolution|---                         |FIXED

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
t.ii: In function ‘int main()’:
t.ii:12:3: error: ‘Base::i’ is not a direct member of ‘Derived’
   12 |   };
      |   ^


More information about the Gcc-bugs mailing list