2 ! Tests the fix for PR28771 in which an assumed character length variable with an initializer could
3 ! survive in the main program without causing an error.
5 ! Contributed by Martin Reinecke <martin@mpa-garching.mpg.de>
6 ! Modified to test fix of regression reported by P.Schaffnit@access.rwth-aachen.de
9 ! The regression caused an ICE here
10 CHARACTER ( LEN
= * ), PARAMETER :: Markers(5) = (/ "Error ", &
15 character(6) :: recepteur (5)
19 ! If the regression persisted, the compilation would stop before getting here
21 character(len
=*), parameter :: foo
= 'test' ! Parameters must work.
22 character(len
=4) :: bar
= foo
23 character(len
=*) :: foobar
= 'This should fail' ! { dg-error "must be a dummy" }