https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 50330 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50330&action=edit gcc11-pr99456.patch On one side, we have still accepts-invalid issue, e.g. in your testcase: constexpr inline Container Var1 {reinterpret_cast<uintptr_t> (&descRef)}; should be rejected because reinterpret_cast is not allowed in constant expression, but we accept it, because we have REINTERPRET_CAST_P flag only on NOP_EXPRs and not CONVERT_EXPRs that are emitted in this case.