[Bug c++/115986] [14 Regression] ICE in fold_convert_loc, at fold-const.cc:2644 involving consteval user-defined uint128 literals
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 29 13:14:27 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115986
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:56d5f8a60519f6c76df671e9f96acf995b0ffc6c
commit r14-10517-g56d5f8a60519f6c76df671e9f96acf995b0ffc6c
Author: Jason Merrill <jason@redhat.com>
Date: Fri Jul 26 17:20:18 2024 -0400
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.
(cherry picked from commit a9e9f772c7488ac0c09dd92f28890bdab939771a)
More information about the Gcc-bugs
mailing list