This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27478] getting ": error: invalid operand to binary operator"
- 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: 4 Jun 2006 20:58:54 -0000
- Subject: [Bug fortran/27478] getting ": error: invalid operand to binary operator"
- References: <bug-27478-12647@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from fxcoudert at gcc dot gnu dot org 2006-06-04 20:58 -------
I'm amazed that 27889 is a duplicate of this bug, although I agree that they
have similar error messages. They happen in very different (and specific
circumstances). FYI, the testcases from 27889 are:
[on 4.1 at -O1 and higher]
MODULE constraints_module
REAL target
CONTAINS
SUBROUTINE init_constraint
COMPLEX struc_fac
CALL set_structure_factor
RETURN
CONTAINS
SUBROUTINE set_structure_factor
target = CONJG( struc_fac ) * struc_fac
END SUBROUTINE set_structure_factor
END SUBROUTINE init_constraint
END MODULE constraints_module
[on 4.2 at any optimization level]
COMPLEX z
CONTAINS
SUBROUTINE foo
z = z + z
END SUBROUTINE foo
END
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27478