> I suppose that's different from TYPE_NEEDS_CONSTRUCTING? So > it fails doing the build_fake_var_decl?
Yes, it fails in layout_decl because the VAR_DECL has self-referential size so you have PLACEHOLDER_EXPRs in the DECL_SIZE and we cannot handle them this late in LTO mode. We don't use TYPE_NEEDS_CONSTRUCTING in Ada. -- Eric Botcazou