aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-generic.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2021-04-24 00:01:42 -0400
committerPatrick Palka <ppalka@redhat.com>2021-04-24 00:01:42 -0400
commit5f1a2cb9c2dc09eed53da5d5787d14bec700b10b (patch)
tree85a21d55f999cadbe0f7972b05965eeab684cc55 /gcc/tree-vect-generic.c
parent05ec629f05646837301820b89354a64673185224 (diff)
downloadgcc-5f1a2cb9c2dc09eed53da5d5787d14bec700b10b.zip
gcc-5f1a2cb9c2dc09eed53da5d5787d14bec700b10b.tar.gz
gcc-5f1a2cb9c2dc09eed53da5d5787d14bec700b10b.tar.bz2
c++: Hard error with tentative parse and CTAD [PR87709]
When parsing e.g. the operand of sizeof, where both types and expressions are accepted, if during the tentative type parse we encounter an unexpected template placeholder, we must simulate an error rather than issue a real error because the expression parse can still succeed. gcc/cp/ChangeLog: PR c++/87709 * parser.c (cp_parser_type_id_1): If we see a template placeholder, first try simulating an error before issuing a real error. gcc/testsuite/ChangeLog: PR c++/87709 * g++.dg/cpp1z/class-deduction86.C: New test.
Diffstat (limited to 'gcc/tree-vect-generic.c')
0 files changed, 0 insertions, 0 deletions