[Bug c++/96905] [10/11 Regression] ICE with consteval function: internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.c:827
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 9 01:52:45 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96905
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:57d705da0b98f5d398c4b8f9bd76fe8ad98e13bc
commit r11-7143-g57d705da0b98f5d398c4b8f9bd76fe8ad98e13bc
Author: Jason Merrill <jason@redhat.com>
Date: Mon Feb 8 17:16:14 2021 -0500
c++: consteval and explicit instantiation [PR96905]
Normally, an explicit instantiation means we want to write out the
instantiation. But not for a consteval function.
gcc/cp/ChangeLog:
PR c++/96905
* pt.c (mark_decl_instantiated): Exit early if consteval.
gcc/testsuite/ChangeLog:
PR c++/96905
* g++.dg/cpp2a/consteval-expinst1.C: New test.
More information about the Gcc-bugs
mailing list