https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88112

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> It's a type that only lives in the abstract origin which is never output,
> so the FE somewhat has a point in not needing to gimplify it (similar
> to the Ada case with gloBal types that cannot be gimplified).

So why not set a flag and clear the sizepos only in this case.  Or else reset
the sizepos to PLACEHOLDER_EXPR in the C++ front-end.

> Can Ada global types ever have CALL_EXPRs in their size expressions?

CALL_EXPRs can only occur in CONTAINS_PLACEHOLDER_P expressions.

Reply via email to