[Bug c++/125437] [13/14/15/16/17 Regression] ICE when parsing dependent return type E::T inside class template with enum
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun May 24 15:07:11 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125437
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.5
Priority|P3 |P4
Summary|ICE when parsing dependent |[13/14/15/16/17 Regression]
|return type E::T inside |ICE when parsing dependent
|class template with enum |return type E::T inside
| |class template with enum
Known to work| |11.4.0
Known to fail| |12.1.0
Keywords| |error-recovery,
| |ice-on-invalid-code
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
>Clang accepts this code:
That is a QoI issue on clang side. This code is invalid as E::T can never be
valid in this context.
More information about the Gcc-bugs
mailing list