public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36492]  New: incorrect error when compiling
@ 2008-06-10 18:08 clerman at fuse dot net
  2008-06-11  5:37 ` [Bug fortran/36492] " burnus at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: clerman at fuse dot net @ 2008-06-10 18:08 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-06-21  8:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-10 18:08 [Bug fortran/36492] New: incorrect error when compiling clerman at fuse dot net
2008-06-11  5:37 ` [Bug fortran/36492] " burnus at gcc dot gnu dot org
2008-06-12 13:11 ` clerman at fuse dot net
2008-06-13 18:11 ` burnus at gcc dot gnu dot org
2008-06-13 20:26 ` burnus at gcc dot gnu dot org
2008-06-13 20:36 ` d at domob dot eu
2008-06-18 13:57 ` domob at gcc dot gnu dot org
2008-06-20 20:32 ` clerman at fuse dot net
2008-06-21  8:00 ` domob at gcc dot gnu dot org
2008-06-21  8:44 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).