https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97700
ensadc at mailnesia dot com changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=83258 --- Comment #1 from ensadc at mailnesia dot com --- The lambda is not needed to reproduce the bug. This also triggers the error: void fun() {} struct S { void (*f)(); }; template<S> struct X {}; using x = X<S{ fun }>;