diff options
author | Fritz Reese <fritzoreese@gmail.com> | 2016-10-05 20:24:48 +0000 |
---|---|---|
committer | Fritz Reese <foreese@gcc.gnu.org> | 2016-10-05 20:24:48 +0000 |
commit | 908b82964e0985f2f97e5848ba10cda7e77ce8cb (patch) | |
tree | cfed710cce62e264fecedd6ec5bb21f948f6c83a /gcc/fortran/resolve.c | |
parent | 3bd034d0181e3f8ed26baac2e69c6b3bba2eb05c (diff) | |
download | gcc-908b82964e0985f2f97e5848ba10cda7e77ce8cb.zip gcc-908b82964e0985f2f97e5848ba10cda7e77ce8cb.tar.gz gcc-908b82964e0985f2f97e5848ba10cda7e77ce8cb.tar.bz2 |
Fix ICE due to comparison between UNION components.
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.
From-SVN: r240810
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions