Re: C++ PATCH for c++/88373, wrong parse error with ~

2018-12-06 Thread Jason Merrill
On 12/6/18 11:33 AM, Marek Polacek wrote: This patch fixes a bogus parse error with ~ in a template-argument-list. We have S> and cp_parser_template_argument just tries to parse each argument as a type, id-expression, etc to see what sticks. When it sees ~value, it tries to parse it using

C++ PATCH for c++/88373, wrong parse error with ~

2018-12-06 Thread Marek Polacek
This patch fixes a bogus parse error with ~ in a template-argument-list. We have S> and cp_parser_template_argument just tries to parse each argument as a type, id-expression, etc to see what sticks. When it sees ~value, it tries to parse it using cp_parser_class_name (because of the ~), whi