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!-).

Reply via email to