[PATCH] PR c++/54466 - ICE with alias template which type-id is const qualified

2012-10-27 Thread Dodji Seketeli
Hello, Consider this short example: template struct X { }; template using Y = const X; using Z = Y; G++ crashes in lookup_class_template_1 while trying to build the alias template instantiation Y. I think this is indirectly due to the fact that lookup_class_template_1

Re: [PATCH] PR c++/54466 - ICE with alias template which type-id is const qualified

2012-11-06 Thread Jason Merrill
OK. You could also use TYPE_MAIN_DECL instead of TYPE_STUB_DECL. Jason