This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34802] Unknown symbol name should be included in Error message
- From: "harry dot rockefeller at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2008 22:35:00 -0000
- Subject: [Bug fortran/34802] Unknown symbol name should be included in Error message
- References: <bug-34802-15641@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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