This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30877] Extending intrinsic operators
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Mar 2007 09:01:34 -0000
- Subject: [Bug fortran/30877] Extending intrinsic operators
- References: <bug-30877-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from fxcoudert at gcc dot gnu dot org 2007-03-25 11:01 -------
Subject: Bug 30877
Author: fxcoudert
Date: Sun Mar 25 10:01:23 2007
New Revision: 123196
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123196
Log:
PR fortran/30877
* fortran/interface.c (check_operator_interface): Implement
the standard checks on user operators extending intrinsic operators.
* fortran/resolve.c (resolve_operator): If the ranks of operators
don't match, don't error out but try the user-defined ones first.
* gfortran.dg/operator_1.f90: New test.
* gfortran.dg/operator_2.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/operator_1.f90
trunk/gcc/testsuite/gfortran.dg/operator_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/interface.c
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30877