Re: [C++ Patch] PR 58535

2013-10-02 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] PR 58535

2013-10-02 Thread Paolo Carlini
... oops attached the patch which I just committed. Sorry. Right attachments below. Thanks, Paolo. // /cp 2013-10-02 Paolo Carlini PR c++/58535 * parser.c (cp_parser_function_specifier_opt): Upon error about virtual templates don't set ds_virtual

[C++ Patch] PR 58535

2013-10-02 Thread Paolo Carlini
Hi, in this [4.8/4.9] diagnostic regression the gcc_assert in check_member_templates trips: /* The parser rejects any use of virtual in a function template. */ gcc_assert (!(TREE_CODE (decl) == FUNCTION_DECL && DECL_VIRTUAL_P (decl))); the ultimate reason being that i