]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
2016-10-05 Fritz Reese <fritzoreese@gmail.com>
authorforeese <foreese@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Oct 2016 20:24:48 +0000 (20:24 +0000)
committerforeese <foreese@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Oct 2016 20:24:48 +0000 (20:24 +0000)
commitfca4e258f4e84640691b3abb0f171f1456f63777
treecfed710cce62e264fecedd6ec5bb21f948f6c83a
parent556c70bf0882cc6a9213d572f7a3791560322018
2016-10-05  Fritz Reese  <fritzoreese@gmail.com>

Fix ICE due to comparison between UNION components.

gcc/fortran/
* interface.c (gfc_compare_types): Don't compare BT_UNION components
until we know they're both UNIONs.
* interface.c (gfc_compare_union_types): Guard against empty
components.

gcc/testsuite/gfortran.dg/
* dec_union_9.f90: New testcase.
* dec_union_10.f90: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240810 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_union_10.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_union_9.f90 [new file with mode: 0644]