------- Comment #2 from harry dot rockefeller at gmail dot com 2008-01-16
22:35 -------
(In reply to comment #0)
> gcc-3.x gives this information but gcc-4.2 does not.
> In the shell snippit below, the unknown symbol name should be
> embedded in the gcc-4.2 error lines as it is done in gcc-3.4.
>
> $ gcc-3.4 foo.f
> undeclared_variable(index)=0.0
> ^
> Invalid declaration of ... 'undeclared_variable' at (^) ...
>
> $ gcc-4.2 foo.f
> undeclared_variable(index)=0.0
> 1
> Error: Unexpected STATEMENT FUNCTION statement at (1)
>
> another_variable(1)=0.0
> 1
> Error: Unclassifiable statement at (1)
>
Code snippit
program foo
implicit none
integer index /0/
undeclared_variable(index)=0.0
another_variable(1)=0.0
stop
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34802