This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29067] Internal Error: gfc_resolve_expr(): Bad expression type
- 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: 15 Oct 2006 01:21:00 -0000
- Subject: [Bug fortran/29067] Internal Error: gfc_resolve_expr(): Bad expression type
- References: <bug-29067-13243@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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