Re: [PATCH] Fix scoped enum debug info (PR debug/58150)

2018-03-11 Thread Jason Merrill
OK. On Fri, Mar 9, 2018 at 1:15 PM, Jakub Jelinek wrote: > Hi! > > As the following testcase shows, we emit bad debug info if a scoped > enum is used before the enumerators are defined. > gen_enumeration_type_die has support for enum forward declarations that > have NULL

[PATCH] Fix scoped enum debug info (PR debug/58150)

2018-03-09 Thread Jakub Jelinek
Hi! As the following testcase shows, we emit bad debug info if a scoped enum is used before the enumerators are defined. gen_enumeration_type_die has support for enum forward declarations that have NULL TYPE_SIZE (i.e. incomplete), but in this case it is complete, just is ENUM_IS_OPAQUE and the