[Bug c++/124251] Accepts invalid attribute pack expansion without parameter pack

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 26 08:41:26 GMT 2026


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


More information about the Gcc-bugs mailing list