https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124925
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Blocks| |123615
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The main problem is that we don't cache consteval_only flag on types.
We could cache a 3 state (known to be consteval-only, known not to be
consteval-only, unknown), either just on class types or on
array/pointer/reference types as well.
The main reason for not implementing that was that we don't know what will
happen with consteval-only types vs. consteval-only values, i.e. whether it
won't be a wasted effort.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123615
[Bug 123615] (c++-reflection) - [meta-bug] reflection issue