aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2023-10-24 17:48:00 -0400
committerPatrick Palka <ppalka@redhat.com>2023-10-24 17:48:00 -0400
commit51f164f76212feaf896d65616f60877d3217b701 (patch)
tree2e43d67954df6d698ff30cc26b3a2d1930f9aed9 /libgcc
parentc1eee808a93a94a18cffef59432e3422ed4e9b27 (diff)
downloadgcc-51f164f76212feaf896d65616f60877d3217b701.zip
gcc-51f164f76212feaf896d65616f60877d3217b701.tar.gz
gcc-51f164f76212feaf896d65616f60877d3217b701.tar.bz2
c++: cp_stabilize_reference and non-dep exprs [PR111919]
After the removal of NON_DEPENDENT_EXPR, cp_stabilize_reference (which used to just exit early for NON_DEPENDENT_EXPR) is now more prone to passing a weird templated tree to middle-end routines, which for the testcase below leads to a crash from contains_placeholder_p. It seems the best fix is to just exit early when in a template context, like we do in the closely related function cp_save_expr. PR c++/111919 gcc/cp/ChangeLog: * tree.cc (cp_stabilize_reference): Do nothing when processing_template_decl. gcc/testsuite/ChangeLog: * g++.dg/template/non-dependent27.C: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions