https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79009
Sasha Unknown <sasha2048 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sasha2048 at gmail dot com --- Comment #2 from Sasha Unknown <sasha2048 at gmail dot com> --- I confirm that this still happens on my g++-7 (Ubuntu 7.2.0-1ubuntu1~16.04) 7.2.0. My test program (essentially the same as original): template<typename T> struct S {}; template<typename T> void f() { auto s = S<T>(), i = 1; } int main() { f<int>(); return 0; }