https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67041 --- Comment #1 from Louis Dionne <ldionne.2 at gmail dot com> --- Can be simplified to: template <typename ...Anything> auto variable_template = [] { }; int main() { variable_template<>; } Still fails on GCC trunk.