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: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2008 23:43: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 #3 from kargl at gcc dot gnu dot org 2008-01-16 23:43 -------
>
> Code snippit
> program foo
> implicit none
> integer index /0/
> undeclared_variable(index)=0.0
> another_variable(1)=0.0
> stop
> end
>
With trunk I get,
troutmask:sgk[205] gfc4x -o z k.f90
k.f90:5:
another_variable(1) = 0.0
1
Error: Unclassifiable statement at (1)
k.f90:4.19:
undeclared_variable(index) = 0.0
1
Error: Variable type is UNKNOWN in assignment at (1)
I think that putting the variable name into the error
message is simply useless, redundant info. Since you're
reporting this against 4.2, I suggest closing this
PR with WONTFIX because trunk and 4.2 have clearly diverged.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34802