https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77782
--- Comment #3 from foreese at gcc dot gnu.org --- Author: foreese Date: Fri Sep 30 11:37:23 2016 New Revision: 240651 URL: https://gcc.gnu.org/viewcvs?rev=240651&root=gcc&view=rev Log: 2016-09-30 Fritz Reese <fritzore...@gmail.com> Fix ICE caused by union types comparing equal to structures. PR fortran/77782 * gcc/fortran/interface.c (gfc_compare_derived_types): Use gfc_compare_union_types to compare union types. PR fortran/77782 * gcc/testsuite/gfortran.dg/dec_structure_16.f90: New testcase. Added: trunk/gcc/testsuite/gfortran.dg/dec_structure_16.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/interface.c trunk/gcc/testsuite/ChangeLog