[Patch, Fortran] PR 48887 [4.7] Don't mark SELECT TYPE selector as allocatable/pointer

Tobias Burnus burnus@net-b.de
Sat Dec 3 15:06:00 GMT 2011


gfortran wrongly marks the selector of a SELECT TYPE as having the 
pointer or allocatable attribute. Result: No error if one tries to 
change the allocation status.

"If the selector is allocatable, it shall be allocated; the associate 
name is associated with the data object and does not have the 
ALLOCATABLE attribute." (F2008).

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

Tobias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: select_type-fix.diff
Type: text/x-patch
Size: 5065 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111203/e6dc4587/attachment.bin>


More information about the Gcc-patches mailing list