https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59759
--- Comment #12 from Gereon Kremer <gereon.kremer at cs dot rwth-aachen.de> --- And once again. I just upgraded to gcc 5.1.0 Sure enough, it's not fixed... Test_GCC.cpp: In substitution of ‘template<class T> void f(const A<T>*) [with T = <missing>]’: Test_GCC.cpp:25:7: required from here Test_GCC.cpp:25:7: internal compiler error: in unify, at cp/pt.c:18571 f(map);