https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31298

Jürgen Reuter <juergen.reuter at desy dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |juergen.reuter at desy dot de

--- Comment #18 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Contrary to what Tobias Burnus claimed, I think this case is indeed forbidden.
Section 11.2.2 of the Fortran 2003 status (version from Apr 27, 2010) says in
R1111 for rename: local-name => use-name or OPERATOR(local-defined-operator) =>
OPERATOR (use-defined-operator). R1114 says that local-defined-operator is
defined-unary-op or defined-binary-op, and Sec. 7.1.2.3 with C703 says that
defined-unary-op shall not contain more than 63 letters and shall not be the
same as any intrinsic-operator or logical-literal-constant. Sec. 7.1.2.8 (C704)
says the same for defined-binary-op. This would preclude the example give in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31298#c13 by Tobias Burnus. ifort
vetoes such a construction with the message "error #8007: Intrinsic operator
can not be used as the name of a locally defined operator in an OPERATOR rename
clause." [This error, however, is not further documented:
https://software.intel.com/en-us/articles/fdiag8007  ]

Reply via email to