aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgloopmanip.cc
diff options
context:
space:
mode:
authorSimon Martin <simon@nasilyan.com>2025-01-21 13:31:41 +0100
committerSimon Martin <simon@nasilyan.com>2025-01-21 13:34:02 +0100
commit4e4c378ac1f923a310fa31be85ed8c0c50e9f5ef (patch)
treef957e2d3691dd480b2957f9a2bf27ac33d74399b /gcc/cfgloopmanip.cc
parent1dd79f44dfb64b441f3d6c64e7f909d73441bd05 (diff)
downloadgcc-4e4c378ac1f923a310fa31be85ed8c0c50e9f5ef.zip
gcc-4e4c378ac1f923a310fa31be85ed8c0c50e9f5ef.tar.gz
gcc-4e4c378ac1f923a310fa31be85ed8c0c50e9f5ef.tar.bz2
c++: Don't ICE in build_class_member_access_expr during error recovery [PR118225]
The invalid case in this PR trips on an assertion in build_class_member_access_expr that build_base_path would never return an error_mark_node, which is actually incorrect if the object involves a tree with an error_mark_node DECL_INITIAL, like here. This patch changes the assert to not fire if an error has been reported. PR c++/118225 gcc/cp/ChangeLog: * typeck.cc (build_class_member_access_expr): Let errors that that have been reported go through. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/constexpr-ice21.C: New test.
Diffstat (limited to 'gcc/cfgloopmanip.cc')
0 files changed, 0 insertions, 0 deletions