https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87957
--- Comment #28 from Jan Hubicka <hubicka at ucw dot cz> --- > > I already did printf debugging and indeed we only need to decide how to > > adjust type_with_linkage_p so it returns false for all Ada types. Maybe > > cleanest would be to add flag to TYPE_DECL which C++ FE will set and > > other frontends won't, but perhaps there is easier way around. Jason? > > What does it mean exactly for a type to have or not have a linkage? Types with linkage are C++ ODR types. They have associated mangled name (which is after free lang data available by DECL_ASSEMBLER_NAME of the TYPE_DECL of TYPE_NAME) and if the names match in different units, one knows that they are same types even if tree representation diverges. In C++ those are records, unions and enums. Honza