Fix ICE due to map typespecs with different sized charlens being copied.
authorFritz Reese <fritzoreese@gmail.com>
Fri, 7 Oct 2016 21:25:16 +0000 (21:25 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Fri, 7 Oct 2016 21:25:16 +0000 (21:25 +0000)
commit56d3a930ae50cd8ab744a1d2ea4ed803995b47bf
treeb20a99f78f375d2406e8f4099deeabf3092129fa
parent45e2bf2e5e370e62c3cef575b6726dc936a45599
Fix ICE due to map typespecs with different sized charlens being copied.

2016-10-07  Fritz Reese  <fritzoreese@gmail.com>

Fix ICE due to map typespecs with different sized charlens being copied.

gcc/fortran/
* interface.c (compare_components): Check charlen for BT_CHAR.

gcc/testsuite/gfortran.dg/
* dec_union_11.f90: New testcase.

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