* [Bug fortran/16946] sum (array, mask) is not accepted
2004-08-09 16:59 [Bug fortran/16946] New: sum (array, mask) is not accepted schnetter at aei dot mpg dot de
@ 2004-08-09 17:06 ` pinskia at gcc dot gnu dot org
2004-08-09 17:24 ` schnetter at aei dot mpg dot de
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-09 17:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-09 17:06 -------
This looks very much like PR 16907.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16946
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16946] sum (array, mask) is not accepted
2004-08-09 16:59 [Bug fortran/16946] New: sum (array, mask) is not accepted schnetter at aei dot mpg dot de
2004-08-09 17:06 ` [Bug fortran/16946] " pinskia at gcc dot gnu dot org
@ 2004-08-09 17:24 ` schnetter at aei dot mpg dot de
2004-08-09 19:04 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-08-09 17:24 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16946] sum (array, mask) is not accepted
2004-08-09 16:59 [Bug fortran/16946] New: sum (array, mask) is not accepted schnetter at aei dot mpg dot de
2004-08-09 17:06 ` [Bug fortran/16946] " pinskia at gcc dot gnu dot org
2004-08-09 17:24 ` schnetter at aei dot mpg dot de
@ 2004-08-09 19:04 ` pinskia at gcc dot gnu dot org
2004-08-10 15:51 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-09 19:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-09 19:04 -------
Confirmed.
You are right the bugs are not related at all.
I thought I had saw a related bug though somewhere.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-08-09 19:04:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16946
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16946] sum (array, mask) is not accepted
2004-08-09 16:59 [Bug fortran/16946] New: sum (array, mask) is not accepted schnetter at aei dot mpg dot de
` (2 preceding siblings ...)
2004-08-09 19:04 ` pinskia at gcc dot gnu dot org
@ 2004-08-10 15:51 ` pinskia at gcc dot gnu dot org
2004-08-19 15:31 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-10 15:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-10 15:51 -------
http://gcc.gnu.org/ml/fortran/2004-08/msg00056.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16946
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16946] sum (array, mask) is not accepted
2004-08-09 16:59 [Bug fortran/16946] New: sum (array, mask) is not accepted schnetter at aei dot mpg dot de
` (3 preceding siblings ...)
2004-08-10 15:51 ` pinskia at gcc dot gnu dot org
@ 2004-08-19 15:31 ` cvs-commit at gcc dot gnu dot org
2004-08-19 15:34 ` tobi at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-19 15:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-19 15:31 -------
Subject: Bug 16946
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tobi@gcc.gnu.org 2004-08-19 15:31:37
Modified files:
gcc/testsuite : ChangeLog
gcc/fortran : check.c gfortran.h intrinsic.c intrinsic.h
iresolve.c
Added files:
gcc/testsuite/gfortran.dg: reduction.f90
Log message:
fortran/
PR fortran/16946
* check.c (gfc_check_reduction): New function.
(gfc_check_minval_maxval): Removed.
(gfc_check_product): Removed.
(gfc_check_sum): Removed.
* intrinsic.h: Add/remove declarations for these.
* gfortran.h: Add field f3red to union gfc_check_f.
* intrinsic.c (add_sym_3red): New function.
(add_functions): Register maxval, minval, product, and sum intrinsics
through add_sym_3red.
(check_specific): Handle f3red union field.
* iresolve.c: Whitespace change.
testsuite/
PR fortran/16946
* gfortran.dg/reduction.f90: New testcase.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4159&r2=1.4160
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/reduction.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/check.c.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.h.diff?cvsroot=gcc&r1=1.23&r2=1.24
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/intrinsic.c.diff?cvsroot=gcc&r1=1.15&r2=1.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/intrinsic.h.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/iresolve.c.diff?cvsroot=gcc&r1=1.10&r2=1.11
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16946
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16946] sum (array, mask) is not accepted
2004-08-09 16:59 [Bug fortran/16946] New: sum (array, mask) is not accepted schnetter at aei dot mpg dot de
` (4 preceding siblings ...)
2004-08-19 15:31 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-19 15:34 ` tobi at gcc dot gnu dot org
2004-08-19 15:36 ` pinskia at gcc dot gnu dot org
2004-08-19 22:30 ` cvs-commit at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-08-19 15:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-08-19 15:34 -------
Fixed, Erik's patch is now in the CVS.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16946
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16946] sum (array, mask) is not accepted
2004-08-09 16:59 [Bug fortran/16946] New: sum (array, mask) is not accepted schnetter at aei dot mpg dot de
` (5 preceding siblings ...)
2004-08-19 15:34 ` tobi at gcc dot gnu dot org
@ 2004-08-19 15:36 ` pinskia at gcc dot gnu dot org
2004-08-19 22:30 ` cvs-commit at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-19 15:36 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16946
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/16946] sum (array, mask) is not accepted
2004-08-09 16:59 [Bug fortran/16946] New: sum (array, mask) is not accepted schnetter at aei dot mpg dot de
` (6 preceding siblings ...)
2004-08-19 15:36 ` pinskia at gcc dot gnu dot org
@ 2004-08-19 22:30 ` cvs-commit at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-19 22:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-19 22:30 -------
Subject: Bug 16946
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tobi@gcc.gnu.org 2004-08-19 22:30:02
Modified files:
gcc/fortran : ChangeLog
Log message:
Commit previously forgotten ChangeLog diffs for this patch:
PR fortran/16946
* check.c (gfc_check_reduction): New function.
(gfc_check_minval_maxval): Removed.
(gfc_check_product): Removed.
(gfc_check_sum): Removed.
* intrinsic.h: Add/remove declarations for these.
* gfortran.h: Add field f3red to union gfc_check_f.
* intrinsic.c (add_sym_3red): New function.
(add_functions): Register maxval, minval, product, and sum intrinsics
through add_sym_3red.
(check_specific): Handle f3red union field.
* iresolve.c: Whitespace change.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.156&r2=1.157
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16946
^ permalink raw reply [flat|nested] 9+ messages in thread