aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gmail.com>2023-10-19 05:42:02 +0000
committerAndrew Pinski <pinskia@gmail.com>2023-10-19 16:52:02 +0000
commit2454ba9e2d1ce2d1b9b2b46f6111e022364bf9b5 (patch)
tree5576de61d9e9adc1514e66b9da5ae275de8ab0a2 /gcc/cp/constexpr.cc
parent9f33e4c50ee92a2053f52e5eb8f205afa54d4cb0 (diff)
downloadgcc-2454ba9e2d1ce2d1b9b2b46f6111e022364bf9b5.zip
gcc-2454ba9e2d1ce2d1b9b2b46f6111e022364bf9b5.tar.gz
gcc-2454ba9e2d1ce2d1b9b2b46f6111e022364bf9b5.tar.bz2
c: Fix ICE when an argument was an error mark [PR100532]
In the case of convert_argument, we would return the same expression back rather than error_mark_node after the error message about trying to convert to an incomplete type. This causes issues in the gimplfier trying to see if another conversion is needed. The code here dates back to before the revision history too so it might be the case it never noticed we should return an error_mark_node. Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR c/100532 gcc/c/ChangeLog: * c-typeck.cc (convert_argument): After erroring out about an incomplete type return error_mark_node. gcc/testsuite/ChangeLog: * gcc.dg/pr100532-1.c: New test.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions