[Patch, Fortran] PR 42858 - [4.5 Regression] ICE in gfc_array_dimen_size at ../../trunk/gcc/fortran/array.c:2063

Tobias Burnus burnus@net-b.de
Mon Jan 25 13:16:00 GMT 2010


I intent to commit the attached patch as obvious unless someone rejects it.

The problem is that the intrinsic check is not done properly. For
generic procedures (expr->symtree->n.sym->attr.generic), the specific
procedure is expr->value.function.{esym,isym}. While "value" is a union,
value.function is a struct and thus checking value.function.esym == NULL
is valid.

Bootstrap and regtested on x86-64-linux.

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generic2.diff
Type: text/x-patch
Size: 1712 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100125/3355e2d3/attachment.bin>


More information about the Gcc-patches mailing list