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 ();
}
jakub at gcc dot gnu.org via Gcc-bugs Tue, 06 Jan 2026 06:43:21 -0800
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 ();
}