[Bug fortran/70368] New: storage_size and size_of in initialization expression
valeryweber at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 23 08:13:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70368
Bug ID: 70368
Summary: storage_size and size_of in initialization expression
Product: gcc
Version: 4.8.5
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: valeryweber at hotmail dot com
Target Milestone: ---
Dear All
Would it be possible to have one of the storage_size() or size_of() working in
initialization expression with the 4.8 series?
many thanks
v
cat t.f90
module test
private
INTEGER, parameter, public :: i = storage_size(0)
INTEGER, parameter, public :: j = size_of(0)
end module test
gfortran-intel-4.8.5 -c t.f90
t.f90:3.49:
INTEGER, parameter, public :: i = storage_size(0)
1
Error: Invalid character in name at (1)
t.f90:4.34:
INTEGER, parameter, public :: j = size_of(0)
1
Error: Function 'size_of' in initialization expression at (1) must be an
intrinsic function
More information about the Gcc-bugs
mailing list