concepts-syntax1.C
170 Bytes
-
c++: Fix ICE on nonsense requires-clause. · 82aee6dd
Here we were swallowing all the syntax errors by parsing tentatively, and returning error_mark_node without ever actually giving an error. Fixed by using save_tokens/rollback_tokens instead. PR c++/92517 * parser.c (cp_parser_constraint_primary_expression): Do the main parse non-tentatively.
Jason Merrill committed