aboutsummaryrefslogtreecommitdiff
path: root/gcc/recog.h
diff options
context:
space:
mode:
authorNathaniel Shead <nathanieloshead@gmail.com>2023-08-08 12:48:43 +1000
committerJason Merrill <jason@redhat.com>2023-08-08 16:03:25 -0400
commita90bd3ea6d1ba27b15476f0a768d7952c6723420 (patch)
tree2701dd6bf11608f0088a1d373b0cb9b9c88f774a /gcc/recog.h
parente7cae4f873fe94c1af8401b8d0b53a192957215d (diff)
downloadgcc-a90bd3ea6d1ba27b15476f0a768d7952c6723420.zip
gcc-a90bd3ea6d1ba27b15476f0a768d7952c6723420.tar.gz
gcc-a90bd3ea6d1ba27b15476f0a768d7952c6723420.tar.bz2
c++: Report invalid id-expression in decltype [PR100482]
This patch ensures that any errors raised by finish_id_expression when parsing a decltype expression are properly reported, rather than potentially going ignored and causing invalid code to be accepted. We can also now remove the separate check for templates without args as this is also checked for in finish_id_expression. PR c++/100482 gcc/cp/ChangeLog: * parser.cc (cp_parser_decltype_expr): Report errors raised by finish_id_expression. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/decltype-100482.C: New test. Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/recog.h')
0 files changed, 0 insertions, 0 deletions