https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121655
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |8.1.0
Summary|After using |[13/14/15/16 Regression]
|reinterpret_cast on a |struct binding as template
|static variable and passing |argument vs
|its address as a template |reinterpret_cast
|parameter, an internal |
|compiler error occurred |
Ever confirmed|0 |1
Keywords| |ABI, ice-on-invalid-code,
| |ice-on-valid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2025-08-25
Target Milestone|--- |13.5
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. I noticed before C++23, GCC also does not reject the struct binding
as an invalid template argument.
Also in GCC 7, would mangle the template as `f<v0>` which was wrong and why GCC
8+ ICEs.