[Bug c++/102876] GCC fails to use constant initialization even when it knows the value to initialize
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 21 12:52:12 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102876
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
Version|unknown |11.2.0
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
It's known that other compilers try to consteval things that are not in const
context, esp. for initializers. We should think of doing the same (IIRC I saw
patches from Jason flowing by treating inline functions as constexpr
opportunistically).
More information about the Gcc-bugs
mailing list