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

sgk at troutmask dot apl.washington.edu gcc-bugzilla@gcc.gnu.org
Thu Sep 15 23:05:00 GMT 2011


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

--- Comment #9 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2011-09-15 22:53:17 UTC ---
On Thu, Sep 15, 2011 at 09:32:41PM +0000, sgk at troutmask dot
apl.washington.edu wrote:
> On Thu, Sep 15, 2011 at 09:21:42PM +0000, anlauf at gmx dot de wrote:
> > 
> > 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...
> 
> I can confirm that gfortran is mathcing the 2 as if it is
> a statement label.  It seems one may need to alter 
> match_dt_format in fortran/io.c to check if 2 is an
> operand of a user defined operator.
> 

putting a fairly ugly hack into match_dt_format to 
skip statement lable matching, I can get gfortran
to give 

troutmask:sgk[266] gfc4x -o z b.f && ./z
ok 16
ok 6
ok 12



More information about the Gcc-bugs mailing list