fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / initialization_23.f90
blobcc2aca4e223d6f3dbc9f7828a2c1269547e7385d
1 ! { dg-do compile }
3 ! PR 40875: The error was missed and an ICE ensued.
5 ! Contributed by Michael Richmond <michael.a.richmond@nasa.gov>
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
16 ! { dg-final { cleanup-modules "cdf_aux_mod" } }