This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/29067] Internal Error: gfc_resolve_expr(): Bad expression type



------- Comment #10 from kargl at gcc dot gnu dot org  2006-10-15 01:20 -------
(In reply to comment #9)
> I managed to trim it down to:
> 
>       implicit none
>       integer :: n, i
>       character(len=16),parameter :: s = ""
> 
>       if (s(9:16) == "90123456") then
>       endif
>       if (i > 0) then
>         write (i,*) n
>         call foo(0)
>       endif
>       do i = 1, n
>       end do
>       end
> 

This trimmed down example is invalid code.  The "if (i>0)"
statement tries to use before it is defined.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29067


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]