https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124251
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |94404
Last reconfirmed| |2026-02-26
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Alias| |cwg815
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. Note not really a regression.
As this is accepted before:
[ [ X1 :: X0 ( ) ... ] ] int x;
Also this was a C++ defect and GCC just does not implement it yet:
https://cplusplus.github.io/CWG/issues/815.html
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404
[Bug 94404] [meta-bug] C++ core issues