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/18923] segfault after subroutine name confusion



------- Comment #5 from jvdelisle at gcc dot gnu dot org  2006-06-07 03:13 -------
This is no longer giving a segfault on i686-pc-linux-gnu.

 In file foo.f90:3

    subroutine FOO
                 1
Error: MODULE attribute conflicts with PROCEDURE attribute at (1)
 In file foo.f90:4

        integer :: I
                   1
Error: Unexpected data declaration statement in CONTAINS section at (1)
 In file foo.f90:5

        character(len=selected_int_kind(I)) :: C
                                               1
Error: Unexpected data declaration statement in CONTAINS section at (1)
 In file foo.f90:6

    end subroutine
      1
Error: Expecting END MODULE statement at (1)
 In file foo.f90:7

end
  1
 Internal Error at (1):
 gfc_get_default_type(): Bad symbol


Maybe this is good enough?


-- 


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


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