[Bug fortran/60378] ICE on attempt to print null of derived type with unlimited polymorphic component

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 1 17:09:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60378

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #2 from kargl at gcc dot gnu.org ---
(In reply to janus from comment #1)
> I can confirm the ICE with 4.8, but trunk gives:
> 
>   print *,null(mold=x)
>           1
> Error: Invalid context for NULL () intrinsic at (1)
> 
> 
> which I guess is correct.

According to F2008 (above Note 9.33), "If an output item is
a pointer, it shall be associated with a target and data are
transferred from the target to the file."

Given that NULL() is used to disassociated a point, I would 
say that the error message is correct.



More information about the Gcc-bugs mailing list