aboutsummaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-02-06 16:14:19 -0500
committerJason Merrill <jason@redhat.com>2020-02-07 08:51:12 -0500
commit82aee6dd61e2a5b4e4b124f896c8403169688f41 (patch)
treed45df0fc330ed4a44c5ac31be47f4b660b0b37e5 /gcc/recog.c
parent3c7a03bc360c3511fae3747a71e579e9fd0824f9 (diff)
downloadgcc-82aee6dd61e2a5b4e4b124f896c8403169688f41.zip
gcc-82aee6dd61e2a5b4e4b124f896c8403169688f41.tar.gz
gcc-82aee6dd61e2a5b4e4b124f896c8403169688f41.tar.bz2
c++: Fix ICE on nonsense requires-clause.
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.
Diffstat (limited to 'gcc/recog.c')
0 files changed, 0 insertions, 0 deletions