https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41437
Vlad Gheorghiu <vgheorgh at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vgheorgh at gmail dot com --- Comment #8 from Vlad Gheorghiu <vgheorgh at gmail dot com> --- The bug exists in gcc 6.1 as well: class X { template<class> class A{}; }; int main() { X::A<int> a; // compiles just fine }