[Bug fortran/34159] New: Checkbound could warn about unallocated arrays
P dot Schaffnit at access dot rwth-aachen dot de
gcc-bugzilla@gcc.gnu.org
Tue Nov 20 08:49:00 GMT 2007
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
More information about the Gcc-bugs
mailing list