diff options
author | Jason Merrill <jason@redhat.com> | 2024-07-26 17:20:18 -0400 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:06:02 +0200 |
commit | 25ace453ff530251978bac22af2c0932aa5da5ad (patch) | |
tree | a18cb5ca851b12bcf926f9a63ab30436faa8529f /libjava/classpath/mauve-classpath | |
parent | b300fd3985cc1435ecea30d18d00bfab8022d091 (diff) | |
download | gcc-25ace453ff530251978bac22af2c0932aa5da5ad.zip gcc-25ace453ff530251978bac22af2c0932aa5da5ad.tar.gz gcc-25ace453ff530251978bac22af2c0932aa5da5ad.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 'libjava/classpath/mauve-classpath')
0 files changed, 0 insertions, 0 deletions