https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116682
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[12/13/14/15 Regression] |[12/13/14/15 Regression] |ICE with enum definition |ICE with enum definition |inside a generic lamda |inside a generic lamda |argument converting to an |(inside a template |int with constexpr |function) argument | |converting to an int with | |constexpr Host|x86_64-pc-linux-gnu | Target|x86_64-pc-linux-gnu | Build|x86_64-pc-linux-gnu | --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Doing instead of the enum: ``` static constexpr int t = I; return t; ``` inside the lambda works. making write a non template works too.