[Bug fortran/35680] [4.3/4.4 regression] ICE on invalid transfer in variable declaration

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 28 19:34:00 GMT 2008



------- Comment #6 from pault at gcc dot gnu dot org  2008-09-28 19:33 -------
Created an attachment (id=16421)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16421&action=view)
A tentative fix for this PR

This allows the testcase to compile and run correctly.  I am now not sure if x
does need to be declared before foo, simply because it is not needed to
determine the size of the transfer result.

At very least, it is an obvious addition to resolve_transfer.  We can worry
about statement order some other time.

I cannot regtest or commit because of a catastrophe with the Windows installer,
followed by a rash decision to install FC9.

Volunteers?

Paul


-- 


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



More information about the Gcc-bugs mailing list