public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34945]  New: LBOUND fails for array with KIND(complex) used in zero-sized dimension
@ 2008-01-23 18:14 dick dot hendrickson at gmail dot com
  2008-01-28 18:32 ` [Bug fortran/34945] " burnus at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dick dot hendrickson at gmail dot com @ 2008-01-23 18:14 UTC (permalink / raw)
  To: gcc-bugs

With compiler
gcc version 4.3.0 20080109 (experimental) [trunk revision 131426] (GCC)

I get the following error message


>gfortran vf0009.f
vf0009.f: In function 'vf0009':
vf0009.f:11: error: size of variable 'test_array' is too large

If I replace the second line in the declaration of test_array with
any of
     $   KIND(IDA1):5,
     $   KIND(YDA):9,
     $   8:5,
the program compiles without an error message.
The LBOUND function is needed to trigger the error message

Dick Hendrickson

      SUBROUTINE VF0009(IDA1,IDA2,YDA,HDA)
      INTEGER(4) IDA1(4)
      INTEGER(4) IDA2(4)
      COMPLEX(8) YDA(2)
      INTEGER(4) HDA(3)
!  I N I T I A L I Z A T I O N  S E C T I O N
      COMPLEX(KIND=4) :: TEST_ARRAY
     $(  4:5,
     $   KIND(YDA):5,
     $   4:5,
     $   4:5  )
!  T E S T  S T A T E M E N T S
       IDA1(1:4) = LBOUND(TEST_ARRAY)
      END SUBROUTINE


-- 
           Summary: LBOUND fails for array with KIND(complex) used in zero-
                    sized dimension
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dick dot hendrickson at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34945


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

end of thread, other threads:[~2008-02-05 13:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-23 18:14 [Bug fortran/34945] New: LBOUND fails for array with KIND(complex) used in zero-sized dimension dick dot hendrickson at gmail dot com
2008-01-28 18:32 ` [Bug fortran/34945] " burnus at gcc dot gnu dot org
2008-01-29 12:39 ` pault at gcc dot gnu dot org
2008-01-29 14:02 ` burnus at gcc dot gnu dot org
2008-01-30  7:04 ` jvdelisle at gcc dot gnu dot org
2008-01-31  9:50 ` pault at gcc dot gnu dot org
2008-02-03 12:56 ` pault at gcc dot gnu dot org
2008-02-03 14:06 ` pault at gcc dot gnu dot org
2008-02-03 22:47 ` dominiq at lps dot ens dot fr
2008-02-05 13:35 ` pault at gcc dot gnu dot org
2008-02-05 13:38 ` pault 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).