This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16946] sum (array, mask) is not accepted
- From: "schnetter at aei dot mpg dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2004 17:24:23 -0000
- Subject: [Bug fortran/16946] sum (array, mask) is not accepted
- References: <20040809165952.16946.schnetter@aei.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schnetter at aei dot mpg dot de 2004-08-09 17:24 -------
I don't think that this PR and PR 16907 are related. PR 16907 is about array
index expressions that are not integer; this seems to be about an unrecognised
intrinsic.
Here, gfortran expects an array index, and complains because "equal" is not a
scalar. I assume that gfortran tries to match the intrinsic
sum (array, dim [, mask])
Instead, gfortran should realise that there is a different interface for the
sum intrinsic, namely
sum (array [, mask])
which would match.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16946