Am 18.01.20 um 12:44 schrieb Tobias Burnus:
function_reference_1.f90:9:8:

    9 | print *, foo(1)%a ! { dg-error "Syntax error" }
      |        1
Error: Syntax error in expression at (1)

The error message is not helpful at all.

Well, yes.  It is no better than what we currently have for the slightly
different test case

type t
  integer :: a
end type t
type(t) :: foo
external foo
print *, foo(1)%a
end

which is

a.f90:6:16:

    6 | print *, foo(1)%a
      |                1
Error: Syntax error in PRINT statement at (1)

(but at least that points to the right place).

I can see if I can also replace this with something more useful
(have to find the place where this is issued first, though).

Regards

        Thomas

Reply via email to