[Bug fortran/31720] [4.1/4.2 only] ICE for module function returning automatic array

kargl at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri May 4 17:14:00 GMT 2007



------- Comment #5 from kargl at gcc dot gnu dot org  2007-05-04 18:14 -------
(In reply to comment #4)
> (I guess I should qualify that.  I don't have a copy of the standard laying
> around to check, but it's legal according to the Ellis, Philips and Lahey
> book.)
> 

It is not valid code.  The variable i is being used without it being set
to some value, ie., i is undefined.


-- 


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



More information about the Gcc-bugs mailing list