Re: [PATCH, Fortran] Fix ICE due to comparison between UNION components

2016-10-03 Thread Fritz Reese
On Sun, Oct 2, 2016 at 6:27 PM, Fritz Reese wrote: > All, > > The attached fixes an[other] ICE in the comparison between UNIONs. > This time the ICE is due to a BT_UNION component comparing itself to a > BT_DERIVED component, thus considering their FL_STRUCT and FL_UNION >

[PATCH, Fortran] Fix ICE due to comparison between UNION components

2016-10-02 Thread Fritz Reese
All, The attached fixes an[other] ICE in the comparison between UNIONs. This time the ICE is due to a BT_UNION component comparing itself to a BT_DERIVED component, thus considering their FL_STRUCT and FL_UNION typenodes to be equal. This is very similar to PR fortran/77782, except it is an error