Re: [PATCH] Fix PR86321

2018-06-29 Thread Janne Blomqvist
On Thu, Jun 28, 2018 at 12:16 PM, Richard Biener wrote: > > The fortran FE creates array descriptor types via build_distinct_type_copy > which ends up re-using the TYPE_FIELDs chain of FIELD_DECLs between > types in different type-variant chains. While that seems harmless > in practice it breaks

Re: [PATCH] Fix PR86321

2018-06-29 Thread Dominique d'Humières
The patch fixes PR86321 without regression. Thanks, Dominique

[PATCH] Fix PR86321

2018-06-28 Thread Richard Biener
The fortran FE creates array descriptor types via build_distinct_type_copy which ends up re-using the TYPE_FIELDs chain of FIELD_DECLs between types in different type-variant chains. While that seems harmless in practice it breaks once we try to generate C-like debug info for it because dwarf2ou

Re: [PATCH] Fix PR86321

2018-06-28 Thread Richard Biener
On Thu, 28 Jun 2018, Richard Biener wrote: > > The fortran FE creates array descriptor types via build_distinct_type_copy > which ends up re-using the TYPE_FIELDs chain of FIELD_DECLs between > types in different type-variant chains. While that seems harmless > in practice it breaks once we try