Fix ICE for maps with zero components.
authorFritz Reese <fritzoreese@gmail.com>
Fri, 30 Sep 2016 11:42:31 +0000 (11:42 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Fri, 30 Sep 2016 11:42:31 +0000 (11:42 +0000)
commitc39747d24b7bc8b589393b5bf3e791cbe0176c7b
treed0d437c53defc235cbbb78ba79cff3acd78a352b
parent00074dd8e31adf8bd445e4af7ed27dda77985ab4
Fix ICE for maps with zero components.

2016-09-30  Fritz Reese  <fritzoreese@gmail.com>

Fix ICE for maps with zero components.

PR fortran/77764
* gcc/fortran/interface.c (gfc_compare_union_types): Null-guard map
components.

PR fortran/77764
* gcc/testsuite/gfortran.dg/dec_union_8.f90: New testcase.

From-SVN: r240652
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_union_8.f90 [new file with mode: 0644]