------- Comment #15 from d at domob dot eu  2008-04-01 08:12 -------
The bootstrap problem is fixed, but with dynamic lengths I'm still struggling
;)
However, the following program without typespec in the array constructor also
fails (according to my judging what it should do) both with 4.3 and my
(patched) SVN version; I don't have access to an unpatched one:

PROGRAM test
  CALL foo (8, "short")
CONTAINS
  SUBROUTINE foo (n, s)
    INTEGER :: n
    CHARACTER(len=*) :: s
    CHARACTER(len=n) :: arr(2)
    arr = (/ 'test', s /)
    WRITE (*,*) arr(1)
    WRITE (*,*) arr(2)
    WRITE (*,*) s
    WRITE (*,*)
  END SUBROUTINE foo
END PROGRAM test

Is this anouther bug or do I misinterpret something?


-- 


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

Reply via email to