[Bug c++/123413] [13/14/15/16 Regression] ICE: in gimplify_var_or_parm_decl, at gimplify.cc with statement expression inside a template assigned to a decltype(auto)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 6 14:42:52 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123413
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
template <int N = 42>
void
foo ()
{
int x = 42;
decltype (auto) y = ({ int z = x; z; });
}
int
main ()
{
foo ();
}
More information about the Gcc-bugs
mailing list