aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2020-05-15 18:51:11 -0400
committerPatrick Palka <ppalka@redhat.com>2020-05-15 18:51:11 -0400
commit115232b778943be075fc4df991e03d9387563114 (patch)
treef9efb9c61ff16ac50f01e0f92a1eda1adac2a6b9 /gcc/tree-vrp.c
parent9d495e725084b5464b17911a11fddfda3a3d906f (diff)
downloadgcc-115232b778943be075fc4df991e03d9387563114.zip
gcc-115232b778943be075fc4df991e03d9387563114.tar.gz
gcc-115232b778943be075fc4df991e03d9387563114.tar.bz2
c++: decltype of invalid non-dependent expr [PR57943]
We sometimes fail to reject an invalid non-dependent operand to decltype when inside a template, because finish_decltype_type resolves the decltype to the TREE_TYPE of the operand before we ever instantiate and fully process the operand. Fix this by adding a call to instantiate_non_dependent_expr_sfinae in finish_decltype_type. gcc/cp/ChangeLog: PR c++/57943 * semantics.c (finish_decltype_type): Call instantiate_non_dependent_expr_sfinae on the expression. gcc/testsuite/ChangeLog: PR c++/57943 * g++.dg/cpp0x/decltype76.C: New test.
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions