aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-05-21 10:27:11 -0400
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:04:03 -0300
commitbf28a111839916b3d53535a519432a7b3a621c12 (patch)
treec138ef1b7c087e70c159aea9b5a20385ec40c60e /gcc/cp/constexpr.c
parent1c3075d7883f3907abc58afe894e1649935b3b6d (diff)
downloadgcc-bf28a111839916b3d53535a519432a7b3a621c12.zip
gcc-bf28a111839916b3d53535a519432a7b3a621c12.tar.gz
gcc-bf28a111839916b3d53535a519432a7b3a621c12.tar.bz2
c++: Improve error-recovery for parms.
If a parameter is erroneous, we currently drop it, leading to "too many arguments" errors later. Treating the function as (...) avoids those errors. gcc/cp/ChangeLog: * decl.c (grokparms): Return NULL_TREE if any parms were erroneous. gcc/testsuite/ChangeLog: * g++.dg/parse/error33.C: Adjust.
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions