[Bug lto/88112] [9 regression] ICE in lto1: TYPE_FIELDS defined in incomplete type
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 21 08:51:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list