Debian Codegraph @

gcc/testsuite/gfortran.dg/function_reference_2.f90

raw
1 ! { dg-do compile }
2 ! PR 44960 - improve the error message
3 program main
4 type t
5 integer :: a
6 end type t
7 type(t) :: foo
8 external foo
9 i = foo(1)%1 ! { dg-error "leftmost part-ref in a data-ref cannot be a function reference" }
10 end