https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118078
Bug ID: 118078 Summary: [12/13/14/15 Regression] GCC crashes on incorrect code with -std=c++20 since r10-4719 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: jakub at gcc dot gnu.org, jason at gcc dot gnu.org, q1210081098 at gmail dot com, webrown.cpp at gmail dot com Depends on: 116108 Target Milestone: --- +++ This bug was initially created as a clone of Bug #116108 +++ template <class T> struct S { struct U { S s; } u; }; S t{2}; (or cv qualified versions thereof somewhere) or say template <class T> struct S { struct U { struct V { const struct W { const S s; } w; } v; } u; }; S t{2}; still ICE, looking just at currently_open_class isn't enough, there can be many open classes at the same time. All this still started with r10-4719-g9b41ebbcdf9e33285a0eebeb7c841afe20e4a7c1 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116108 [Bug 116108] [12/13/14 Regression] GCC crashes on incorrect code with -std=c++20 since r10-4719