https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70067
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Mar 4 16:08:06 2016 New Revision: 233974 URL: https://gcc.gnu.org/viewcvs?rev=233974&root=gcc&view=rev Log: PR c++/70067 * tree.c (strip_typedefs): Handle TYPENAME_TYPE lookup finding the same type. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/template/typename21.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/tree.c