------- Comment #10 from manu at gcc dot gnu dot org 2008-10-26 22:01 ------- It seems that the problem is cp_parser_template_id fails to parse Y<int> as a template-id because when it does a lookup it finds that Y is just a non-template class and concludes that Y<int> cannot be a template-id. This in turn makes cp_parser_class_name fail to parse Y<int>, which makes cp_parser_constructor_declarator_p return false.
No idea how this could be fixed... -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail|3.4.3 4.1.2 4.3.0 |3.4.3 4.1.2 4.3.0 4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9050