This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50407] compiler confused by .operator.
- From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Sep 2011 21:32:41 +0000
- Subject: [Bug fortran/50407] compiler confused by .operator.
- Auto-submitted: auto-generated
- References: <bug-50407-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50407
--- Comment #7 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2011-09-15 21:32:41 UTC ---
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.