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 #12 from fxcoudert at gcc dot gnu dot org  2006-10-15 08:40 -------
(In reply to comment #10)
> This trimmed down example is invalid code.  The "if (i>0)"
> statement tries to use before it is defined.

Sorry about that: the following code is valid, and also fails to compile with
the same error.

      implicit none
      integer :: n, i
      character(len=16),parameter :: s = ""

      i = 0 ; n = 9
      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


-- 


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]