This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/16946] sum (array, mask) is not accepted


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]