[Patch, Fortran] PR57530 - fix rejects valid with gfc_type_compatible

Tobias Burnus burnus@net-b.de
Wed Jun 5 12:01:00 GMT 2013


A TYPE is type compatible with a CLASS if both have the same declared type.

Or in words of the standard (cf. PR):
"A nonpolymorphic entity is type compatible only with entities of the 
same declared type. A polymorphic entity that is not an unlimited 
polymorphic entity is type compatible with entities of the same declared 
type or any of its extensions." (F2008, 4.3.1.3).

Build and regtested on x86-64-gnu-linux.
OK for the trunk?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptr-assign.diff
Type: text/x-patch
Size: 1319 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130605/b56e2faf/attachment.bin>


More information about the Fortran mailing list