On 05/13/2011 01:24 PM, Ville Voutilainen wrote:
+ error ("cannot derive from from final base %qT in derived type %qT",
Let's use %<final%> here.
if (id) - cp_parser_check_for_invalid_template_id (parser, id, - type_start_token->location); + { + virt_specifiers = cp_parser_virt_specifier_seq_opt (parser); + cp_parser_check_for_invalid_template_id (parser, id, + type_start_token->location); + }
Why did you put this before the invalid template-id check, rather than after?
Also, shouldn't we reject "override" on classes? The test should include a class template marked final. Jason