public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25046] New: better diagnostic needed
@ 2005-11-26 17:44 jv244 at cam dot ac dot uk
2005-11-26 18:54 ` [Bug fortran/25046] MASK and ARRAY arguments of PRODUCT must have conformant shapes fxcoudert at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-11-26 17:44 UTC (permalink / raw)
To: gcc-bugs
using GNU Fortran 95 (GCC) 4.1.0 20051126 (prerelease) with '-g -pedantic
-std=f95', I get a bad / no diagnostic for the following invalid code:
END
SUBROUTINE S1(N)
INTEGER :: A(3)
LOGICAL :: B(3,3)
write(6,*) PRODUCT(A,B)
END SUBROUTINE
--
Summary: better diagnostic needed
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25046
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25046] MASK and ARRAY arguments of PRODUCT must have conformant shapes
2005-11-26 17:44 [Bug fortran/25046] New: better diagnostic needed jv244 at cam dot ac dot uk
@ 2005-11-26 18:54 ` fxcoudert at gcc dot gnu dot org
2006-02-04 22:04 ` tkoenig at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-11-26 18:54 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1681 bytes --]
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-11-26 18:54 -------
## gfortran ##
foo.f90: In function âs1â:
foo.f90:2: internal compiler error: Segmentation fault
## g95 ##
In file foo.f90:5
write(6,*) PRODUCT(A,B)
1
Error: 'mask' argument of 'product' intrinsic at (1) must be conformable with
ARRAY parameter
## Intel ##
fortcom: Error: foo.f90, line 5: The shapes of the arguments do not conform.
[PRODUCT]
write(6,*) PRODUCT(A,B)
-----------------------^
fortcom: Warning: foo.f90, line 2: This name has not been given an explicit
type. [N]
SUBROUTINE S1(N)
--------------^
fortcom: Info: foo.f90, line 2: This variable has not been used. [N]
SUBROUTINE S1(N)
--------------^
compilation aborted for foo.f90 (code 1)
## Sun ##
write(6,*) PRODUCT(A,B)
^
"foo.f90", Line = 5, Column = 14: ERROR: No specific intrinsic exists for the
intrinsic call "PRODUCT".
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2005-11-26 18:54:32
date| |
Summary|better diagnostic needed |MASK and ARRAY arguments of
| |PRODUCT must have conformant
| |shapes
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25046
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25046] MASK and ARRAY arguments of PRODUCT must have conformant shapes
2005-11-26 17:44 [Bug fortran/25046] New: better diagnostic needed jv244 at cam dot ac dot uk
2005-11-26 18:54 ` [Bug fortran/25046] MASK and ARRAY arguments of PRODUCT must have conformant shapes fxcoudert at gcc dot gnu dot org
@ 2006-02-04 22:04 ` tkoenig at gcc dot gnu dot org
2006-02-04 22:06 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-02-04 22:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tkoenig at gcc dot gnu dot org 2006-02-04 22:04 -------
This is now caught on trunk, since revision 110453 (I had overlooked
this PR when fixing this).
Thomas
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25046
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25046] MASK and ARRAY arguments of PRODUCT must have conformant shapes
2005-11-26 17:44 [Bug fortran/25046] New: better diagnostic needed jv244 at cam dot ac dot uk
2005-11-26 18:54 ` [Bug fortran/25046] MASK and ARRAY arguments of PRODUCT must have conformant shapes fxcoudert at gcc dot gnu dot org
2006-02-04 22:04 ` tkoenig at gcc dot gnu dot org
@ 2006-02-04 22:06 ` pinskia at gcc dot gnu dot org
2006-02-05 0:14 ` tkoenig at gcc dot gnu dot org
2006-02-05 0:16 ` tkoenig at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-04 22:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-02-04 22:06 -------
Just for the record the error message is:
In file t.f90:5
write(6,*) PRODUCT(A,B)
1
Error: Incompatible ranks in arguments 'array' and 'mask' for intrinsic product
at (1)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25046
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25046] MASK and ARRAY arguments of PRODUCT must have conformant shapes
2005-11-26 17:44 [Bug fortran/25046] New: better diagnostic needed jv244 at cam dot ac dot uk
` (2 preceding siblings ...)
2006-02-04 22:06 ` pinskia at gcc dot gnu dot org
@ 2006-02-05 0:14 ` tkoenig at gcc dot gnu dot org
2006-02-05 0:16 ` tkoenig at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-02-05 0:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from tkoenig at gcc dot gnu dot org 2006-02-05 00:14 -------
Subject: Bug 25046
Author: tkoenig
Date: Sun Feb 5 00:14:37 2006
New Revision: 110600
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110600
Log:
2006-02-04 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/26039
PR fortran/25046
* expr.c (gfc_check_conformance): Reorder error message
to avoid plural.
* check.c(gfc_check_minloc_maxloc): Call gfc_check_conformance
for checking arguments array and mask.
(check_reduction): Likewise.
2006-02-04 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/26039
PR fortran/25046
* maxval_maxloc_conformance_1.f90: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/maxval_maxloc_conformance_1.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/check.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25046
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25046] MASK and ARRAY arguments of PRODUCT must have conformant shapes
2005-11-26 17:44 [Bug fortran/25046] New: better diagnostic needed jv244 at cam dot ac dot uk
` (3 preceding siblings ...)
2006-02-05 0:14 ` tkoenig at gcc dot gnu dot org
@ 2006-02-05 0:16 ` tkoenig at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-02-05 0:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from tkoenig at gcc dot gnu dot org 2006-02-05 00:16 -------
Fixed on trunk and 4.1. Closing.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25046
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-02-05 0:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26 17:44 [Bug fortran/25046] New: better diagnostic needed jv244 at cam dot ac dot uk
2005-11-26 18:54 ` [Bug fortran/25046] MASK and ARRAY arguments of PRODUCT must have conformant shapes fxcoudert at gcc dot gnu dot org
2006-02-04 22:04 ` tkoenig at gcc dot gnu dot org
2006-02-04 22:06 ` pinskia at gcc dot gnu dot org
2006-02-05 0:14 ` tkoenig at gcc dot gnu dot org
2006-02-05 0:16 ` tkoenig at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).