3 ! PR 42188: [OOP] F03:C612. The leftmost part-name shall be the name of a data object
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
15 subroutine new_grid(this
)
18 integer function new_int(this
)
34 type(field
) function new_field()
40 g
= new_field()%mesh
! { dg-error "can not be a function reference" }
41 call new_field()%mesh
%new_grid() ! { dg-error "Syntax error" }
42 i
= new_field() % mesh
%new_int() ! { dg-error "can not be a function reference" }