This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/65454] Extending both forms of relational operators
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Mar 2015 09:51:37 +0000
- Subject: [Bug fortran/65454] Extending both forms of relational operators
- Auto-submitted: auto-generated
- References: <bug-65454-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65454
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-03-20
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> > Can this behavior be considered as a bug?
>
> I'm not completely sure, but probably yes.
Not sure either.
> A workaround is to apply the USE directive without the ONLY.
The code compiles and gives the "expected" result at run time if the line
USE :: deriv_m, ONLY: deriv_t, OPERATOR(.LE.)
is replaced with
USE :: deriv_m, ONLY: deriv_t, operator(<=)
> Also, the latter possibly makes your program invalid, since you import
> only the ".LE." but not the "<=" operator. Or should it import both forms?
I don't understand the above sentences.
> (I haven't read up on the details in the standard.)
I had a look, but did not find anything related to USE...ONLY (I did not look
too hard!-).