https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124610
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE: in |[15/16 Regression] ICE: in
|finish_member_declaration, |finish_member_declaration,
|at cp/semantics.cc:4269 |at cp/semantics.cc:4269
| |since r15-3045
Ever confirmed|0 |1
Last reconfirmed| |2026-03-23
Target Milestone|--- |15.3
CC| |jakub at gcc dot gnu.org
Status|UNCONFIRMED |NEW
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with my r15-3045-g1db5ca04da365ac57f7d788a85055edcf13da708 .
struct A {};
struct B : alignas (enum { a }) A {};
E.g.
struct A {};
struct B : [[gnu::aligned (alignof (enum { a }))]] A {};
doesn't ICE, but is rejected with
error: types may not be defined in ‘alignof’ expressions