aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-02-11 15:29:24 -0500
committerMarek Polacek <polacek@redhat.com>2020-02-12 10:39:40 -0500
commite428a9cf85a8bdde9d031a215e10bd96eb3b789a (patch)
treef1114cb0ec663b33cfd430fac74b4857059c98ff /gcc/fold-const.c
parent62fc0a6ce28c502fc6a7b7c09157840bf98f945f (diff)
downloadgcc-e428a9cf85a8bdde9d031a215e10bd96eb3b789a.zip
gcc-e428a9cf85a8bdde9d031a215e10bd96eb3b789a.tar.gz
gcc-e428a9cf85a8bdde9d031a215e10bd96eb3b789a.tar.bz2
c++: Fix ICE-on-invalid with broken attribute [PR93684]
We crash when parsing [[a:: because we see a CPP_SCOPE and then we're trying to consume a CPP_EOF token. So peek before consuming it. PR c++/93684 - ICE-on-invalid with broken attribute. * parser.c (cp_parser_std_attribute): Peek a token first before consuming it. * g++.dg/parse/attr4.C: New test.
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions