[Bug fortran/50407] compiler confused by .operator.

anlauf at gmx dot de gcc-bugzilla@gcc.gnu.org
Thu Sep 15 21:39:00 GMT 2011


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

--- Comment #6 from Harald Anlauf <anlauf at gmx dot de> 2011-09-15 21:21:42 UTC ---
(In reply to comment #5)
> On Thu, Sep 15, 2011 at 08:21:04PM +0000, zeccav at gmail dot com wrote:
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50407
> > 
> > --- Comment #2 from Vittorio Zecca <zeccav at gmail dot com> 2011-09-15 20:21:04 UTC ---
> > I believe the code is valid, and it has nothing to do with recursive I/O.
> > If you comment out the write in the mul function gfortran still fails, so it
> > does not depend on recursive I/O.
> 
> If I comment out the write statement and the 2.ip.8 statement,
> you again have invalid code because the return value of the
> function is never defined.
> 
> But, as I stated, I need to check the requirements of the 
> standard on recursive IO.

When you put parentheses around the expressions,
like (2.ip.8), then the code compiles.

This is also what the Intel Compiler seems to require for the
other variants.  Otherwise you get a lot of messages...



More information about the Gcc-bugs mailing list