public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/32038] New: gfortran.dg/pr25603.f is invalid code
@ 2007-05-22 11:18 fxcoudert at gcc dot gnu dot org
2007-05-22 12:09 ` [Bug testsuite/32038] " fxcoudert at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-05-22 11:18 UTC (permalink / raw)
To: gcc-bugs
The testcase gfortran.dg/pr25603.f is invalid code. The following variables are
not initialized:
lhelpa lhelp lcn lbn lan ldcdy ldcdx lkm ltm lvg lug lvm lum lhvar lzet ldep
lvdep ltstr lustr lobuk ltavr lsteph lhmix lz0 lelevy lelevx lelev ldkzh
ldkzm
lq lpstep lpi lwz lvstep lvy lustep lux ltstep lpot lcstep lc
They should be initialized with a value (like 1) if the test is to be run,
otherwise we access array elements out of range. I suggest the following patch
be applied:
Index: gcc/testsuite/gfortran.dg/pr25603.f
===================================================================
--- gcc/testsuite/gfortran.dg/pr25603.f (revision 124903)
+++ gcc/testsuite/gfortran.dg/pr25603.f (working copy)
@@ -44,6 +44,48 @@ C
call abort
endif
+ LHELPA = 1
+ LHELP = 1
+ LCN = 1
+ LBN = 1
+ LAN = 1
+ LDCDY = 1
+ LDCDX = 1
+ LKM = 1
+ LTM = 1
+ LVG = 1
+ LUG = 1
+ LVM = 1
+ LUM = 1
+ LHVAR = 1
+ LZET = 1
+ LDEP = 1
+ LVDEP = 1
+ LTSTR = 1
+ LUSTR = 1
+ LOBUK = 1
+ LTAVR = 1
+ LSTEPH = 1
+ LHMIX = 1
+ LZ0 = 1
+ LELEVY = 1
+ LELEVX = 1
+ LELEV = 1
+ LDKZH = 1
+ LDKZM = 1
+ LQ = 1
+ LPSTEP = 1
+ LPI = 1
+ LWZ = 1
+ LVSTEP = 1
+ LVY = 1
+ LUSTEP = 1
+ LUX = 1
+ LTSTEP = 1
+ LPOT = 1
+ LCSTEP = 1
+ LC = 1
+
CALL BAR2(NX,NY,NZ,NT,NTIME,NWINDX,NWINDY,NSINKS,NFILT,XSTART,
* YSTART,ZSTART,TSTART,DELTAX,DELTAY,DELTAZ,DELTAT,PHI,DL,
* DX,DY,DZ,IB,IK,ITY,NCOUNT,NPRINT,NGRAPH,NPSTEP,NGSTEP,LAST,
The initial reason I catched this is that I sometimes run the testsuite with
-fbounds-check, which fails in this case.
--
Summary: gfortran.dg/pr25603.f is invalid code
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: testsuite
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32038
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug testsuite/32038] gfortran.dg/pr25603.f is invalid code
2007-05-22 11:18 [Bug testsuite/32038] New: gfortran.dg/pr25603.f is invalid code fxcoudert at gcc dot gnu dot org
@ 2007-05-22 12:09 ` fxcoudert at gcc dot gnu dot org
2007-05-24 6:03 ` jvdelisle 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 @ 2007-05-22 12:09 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-05-22 13:09:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32038
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug testsuite/32038] gfortran.dg/pr25603.f is invalid code
2007-05-22 11:18 [Bug testsuite/32038] New: gfortran.dg/pr25603.f is invalid code fxcoudert at gcc dot gnu dot org
2007-05-22 12:09 ` [Bug testsuite/32038] " fxcoudert at gcc dot gnu dot org
@ 2007-05-24 6:03 ` jvdelisle at gcc dot gnu dot org
2007-05-24 6:31 ` fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-05-24 6:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2007-05-24 07:02 -------
Please do so
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32038
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug testsuite/32038] gfortran.dg/pr25603.f is invalid code
2007-05-22 11:18 [Bug testsuite/32038] New: gfortran.dg/pr25603.f is invalid code fxcoudert at gcc dot gnu dot org
2007-05-22 12:09 ` [Bug testsuite/32038] " fxcoudert at gcc dot gnu dot org
2007-05-24 6:03 ` jvdelisle at gcc dot gnu dot org
@ 2007-05-24 6:31 ` fxcoudert at gcc dot gnu dot org
2007-05-24 9:57 ` fxcoudert at gcc dot gnu dot org
2007-05-24 9:57 ` fxcoudert at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-05-24 6:31 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-05-22 13:09:29 |2007-05-24 07:31:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32038
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug testsuite/32038] gfortran.dg/pr25603.f is invalid code
2007-05-22 11:18 [Bug testsuite/32038] New: gfortran.dg/pr25603.f is invalid code fxcoudert at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-05-24 9:57 ` fxcoudert at gcc dot gnu dot org
@ 2007-05-24 9:57 ` fxcoudert at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-05-24 9:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-05-24 10:57 -------
Fixed
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32038
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug testsuite/32038] gfortran.dg/pr25603.f is invalid code
2007-05-22 11:18 [Bug testsuite/32038] New: gfortran.dg/pr25603.f is invalid code fxcoudert at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-05-24 6:31 ` fxcoudert at gcc dot gnu dot org
@ 2007-05-24 9:57 ` fxcoudert at gcc dot gnu dot org
2007-05-24 9:57 ` fxcoudert at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-05-24 9:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-05-24 10:57 -------
Subject: Bug 32038
Author: fxcoudert
Date: Thu May 24 09:56:50 2007
New Revision: 125019
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125019
Log:
PR fortran/32038
* gfortran.dg/pr25603.f: Initialize integer variables.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/pr25603.f
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32038
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-24 9:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-22 11:18 [Bug testsuite/32038] New: gfortran.dg/pr25603.f is invalid code fxcoudert at gcc dot gnu dot org
2007-05-22 12:09 ` [Bug testsuite/32038] " fxcoudert at gcc dot gnu dot org
2007-05-24 6:03 ` jvdelisle at gcc dot gnu dot org
2007-05-24 6:31 ` fxcoudert at gcc dot gnu dot org
2007-05-24 9:57 ` fxcoudert at gcc dot gnu dot org
2007-05-24 9:57 ` fxcoudert 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).