This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36492] New: incorrect error when compiling
- From: "clerman at fuse dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2008 18:07:51 -0000
- Subject: [Bug fortran/36492] New: incorrect error when compiling
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I'm using the latest trunk version of gfortran. File gcc-trunk-x86_64.tar.gz.
Downloaded today, Tues., June 10, 2008.
For this line of code:
CHARACTER (MAX_FLD_HED, ASCIICharacterKind) :: DWFdHd(MAXFLD) = [(" ", i =
1, MAXFLD)]
the compiler issues the following error message:
Error: The CHARACTER elements of the array constructor at (1) must have the
same length (1/40)
/home/norm/design/source/windataM.f90:72.70:
CHARACTER (MAX_FLD_HED, ASCIICharacterKind) :: DWFdHd(MAXFLD) = [(" ", i =
The code is correct. (The following compilers all compile this code correctly:
NAG, Intel, g95)
Thank you for your attention.
Norm Clerman
--
Summary: incorrect error when compiling
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: clerman at fuse dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36492