[Bug fortran/30660] New: Allocatable components of a derived type "require" the SAVE attribute.
toon at moene dot indiv dot nluug dot nl
gcc-bugzilla@gcc.gnu.org
Wed Jan 31 21:34:00 GMT 2007
The attached code draws the following, bogus, error message from the compiler:
$ /usr/snp/bin/gfortran -c globals.f90
globals.f90:37.24:
TYPE(weight_t) g_winfo ! weights info
1
Error: Object 'g_winfo' at (1) must have the SAVE attribute for default
initialization of a component
globals.f90:36.21:
TYPE(grib_t) g_dest ! output field
1
Error: Object 'g_dest' at (1) must have the SAVE attribute for default
initialization of a component
It's related to the allocatable components of said types.
--
Summary: Allocatable components of a derived type "require" the
SAVE attribute.
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: toon at moene dot indiv dot nluug dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30660
More information about the Gcc-bugs
mailing list