Message ID | 4CDC70BD.3050502@net-b.de |
---|---|
State | New |
Headers | show |
diff --git a/gcc/testsuite/gfortran.dg/char_initialiser_actual.f90 b/gcc/testsuite/gfortran.dg/char_initialiser_actual.f90 index d123aca..dbd7890 100644 --- a/gcc/testsuite/gfortran.dg/char_initialiser_actual.f90 +++ b/gcc/testsuite/gfortran.dg/char_initialiser_actual.f90 @@ -24,6 +24,7 @@ contains function pfoo(ch2) character*5, dimension(:), target :: ch2 character*5, dimension(:), pointer :: pfoo - pfoo => ch2 + allocate(pfoo(size(ch2))) + pfoo = ch2 end function pfoo end program