This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31414] New: Non-integer expression as character length
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2007 19:55:13 -0000
- Subject: [Bug fortran/31414] New: Non-integer expression as character length
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat foo.f90
character(len=2.3) :: s
print *, len(s)
end
$ gfortran foo.f90
foo.f90:1.16:
character(len=2.3) :: s
1
Error: Expression at (1) must be of INTEGER type
foo.f90:1.16:
character(len=2.3) :: s
1
Error: Expression at (1) must be of INTEGER type
foo.f90:0: internal compiler error: Segmentation fault
--
Summary: Non-integer expression as character length
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery
Severity: normal
Priority: P3
Component: fortran
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=31414