https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125745
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
struct A { virtual void foo (); };
struct B : A { constexpr int foo () const { return 42; } };
constexpr B x;
struct C { int i; C () : i (x.foo ()) {} };
The ICE is when trying to constant evaluate during cp_fold .UBSAN_VPTR
arguments.
Perhaps we could just avoid doing that for this ifn. But of course, even
better would be find out why this ICEs.