OSDN Git Service

PR debug/43983
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / initialization_23.f90
1 ! { dg-do compile }
2 !
3 ! PR 40875: The error was missed and an ICE ensued.
4 !
5 ! Contributed by Michael Richmond <michael.a.richmond@nasa.gov>
6 !
7     MODULE cdf_aux_mod
8       PUBLIC
9       TYPE :: one_parameter
10         CHARACTER :: name
11       END TYPE one_parameter
12       CHARACTER, PARAMETER :: the_alpha = one_parameter('c') ! { dg-error "Can't convert TYPE" }
13       CHARACTER, PARAMETER :: the_beta = (/one_parameter('c')/) ! { dg-error "Incompatible ranks" }
14     END MODULE cdf_aux_mod
15
16 ! { dg-final { cleanup-modules "cdf_aux_mod" } }
17