https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86193
Bug ID: 86193 Summary: A recurring bug? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zhonghao at pku dot org.cn Target Milestone: --- The code is as follow: template <class T> struct identity { typedef T type; }; template <class T, typename T::type A> struct foo {}; template <class T, T A> struct foo<identity<T>, A> {}; int main() { foo<identity<int>,0> bar; // error here } It comes from a previous bug report (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44753). It says that the code compiles on gcc-4.2/4.3/4.4, but does not compile on gcc-4.5. It was fixed as Richard Biener said. I tried the latest g++, but it does not accept the code. BTW, clang++ accepts the code. Is this a recurring bug?