Debian Codegraph @

gcc/testsuite/gfortran.dg/initialization_23.f90

raw
1 ! { dg-do compile }
2 !
3 ! PR 40875: The error was missed and an ICE ensued.
4 !
5 ! Contributed by Michael Richmond <[email protected]>
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 "Cannot convert TYPE" }
13 CHARACTER, PARAMETER :: the_beta = (/one_parameter('c')/) ! { dg-error "Incompatible ranks" }
14 END MODULE cdf_aux_mod