c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / constructor_9.f90
bloba61b63a0fe5644c78cbb491d5e30da9e2706d9d1
1 ! { dg-do compile }
2 ! { dg-options "-Wall" }
4 ! PR 58471: [4.8/4.9 Regression] ICE on invalid with missing type constructor and -Wall
6 ! Contributed by Andrew Benson <abensonca@gmail.com>
8 module cf
9 implicit none
10 type :: cfmde
11 end type
12 interface cfmde
13 module procedure mdedc ! { dg-error "is neither function nor subroutine" }
14 end interface
15 contains
16 subroutine cfi()
17 type(cfmde), pointer :: cfd
18 cfd=cfmde() ! { dg-error "Cannot convert" }
19 end subroutine
20 end module