aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ifcombine.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2024-07-26 17:20:18 -0400
committerJason Merrill <jason@redhat.com>2024-07-27 16:26:04 -0400
commita9e9f772c7488ac0c09dd92f28890bdab939771a (patch)
tree613d7521015b9237052168d72e5402160081e664 /gcc/tree-ssa-ifcombine.c
parent3129a2ed6a764c0687efaca9eba53dcf12d1d8a0 (diff)
downloadgcc-a9e9f772c7488ac0c09dd92f28890bdab939771a.zip
gcc-a9e9f772c7488ac0c09dd92f28890bdab939771a.tar.gz
gcc-a9e9f772c7488ac0c09dd92f28890bdab939771a.tar.bz2
c++: consteval propagation and templates [PR115986]
Here the call to e() makes us decide to check d() for escalation at EOF, but while checking it we try to fold_immediate 0_c, and get confused by the template trees. Let's not mess with escalation for function templates. PR c++/115986 gcc/cp/ChangeLog: * cp-gimplify.cc (remember_escalating_expr): Skip function templates. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/consteval-prop21.C: New test.
Diffstat (limited to 'gcc/tree-ssa-ifcombine.c')
0 files changed, 0 insertions, 0 deletions