public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34159] New: Checkbound could warn about unallocated arrays
@ 2007-11-20 8:49 P dot Schaffnit at access dot rwth-aachen dot de
2007-11-20 13:11 ` [Bug fortran/34159] " fxcoudert at gcc dot gnu dot org
2010-05-09 18:34 ` dfranke at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: P dot Schaffnit at access dot rwth-aachen dot de @ 2007-11-20 8:49 UTC (permalink / raw)
To: gcc-bugs
Hi!
I don't seem to get gfortran to warn when assigning to an unallocated array
(I've tried '-g -fbounds-check -Wall -pedantic', which I take it should cover
it all), it only segfaults at run-time...
While this is obviously menial stuff, the Lahey compiler for one nicely warns
both at compile- and run-time.
Just for the record...
Thanks!
Philippe
PS: a reduced example:
!
PROGRAM Test
!
INTEGER, ALLOCATABLE :: Array(:)
!
Array = 256
!
END PROGRAM Test
!
PPS: I've tried with
GNU Fortran (GCC) 4.3.0 20071119 (experimental) [trunk revision 130286]
--
Summary: Checkbound could warn about unallocated arrays
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: P dot Schaffnit at access dot rwth-aachen dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34159
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-09 18:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-20 8:49 [Bug fortran/34159] New: Checkbound could warn about unallocated arrays P dot Schaffnit at access dot rwth-aachen dot de
2007-11-20 13:11 ` [Bug fortran/34159] " fxcoudert at gcc dot gnu dot org
2010-05-09 18:34 ` dfranke 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).