This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35033] Valid ASSIGNMENT(=) rejected
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2008 17:22:11 -0000
- Subject: [Bug fortran/35033] Valid ASSIGNMENT(=) rejected
- References: <bug-35033-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2008-01-30 17:22 -------
"Error: Assignment operator interface at (1) must not redefine an INTRINSIC
type
assignment"
The error message by itself is correct - but
a) The position is very bad it should point to SUBROUTINE and not to END
SUBROUTINE
b) There is no intrinsic assignment as the RANK of the two arrays is different.
>From F2003's "12.3.2.1.2 Defined assignments":
"Either the second argument shall be an array whose rank differs from that of
the first argument, the declared types and kind type parameters of the
arguments shall not conform as specified in Table 7.8, or the first argument
shall be of derived type."
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35033