https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99859
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- For the global vars (so PR80039 too), can the problem be anything but when cxx_eval_outermost_constant_expr is called on such an object (or part thereof)? Unfortunately, ctx->object might be NULL, perhaps we could stick a copy of that into ctx->global->object (get_base_address of the outermost object it is called on)?