------- 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

Reply via email to