public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29755]  New: ICE on same name in subroutine and program
@ 2006-11-07 22:14 burnus at gcc dot gnu dot org
  2006-11-07 22:14 ` [Bug fortran/29755] " burnus at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-11-07 22:14 UTC (permalink / raw)
  To: gcc-bugs

import.f90:9:

    subroutine foo(x)
                 1
Error: PROGRAM attribute conflicts with PROCEDURE attribute at (1)
import.f90:0: internal compiler error: Segmentation fault

---------
program foo
  type myType
    integer :: i
  end type myType
  interface
    subroutine foo(x)
      type(myType) :: i
    end subroutine foo
  end interface
  call foo()
end program foo
---------

The crash occurs in decl.c in the line:
if (current_ts.type == BT_DERIVED
    && gfc_current_ns->proc_name->attr.if_source == IFSRC_IFBODY
since gfc_current_ns->proc_name == NULL

I have a patch for this.


-- 
           Summary: ICE on same name in subroutine and program
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-11-10 17:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-07 22:14 [Bug fortran/29755] New: ICE on same name in subroutine and program burnus at gcc dot gnu dot org
2006-11-07 22:14 ` [Bug fortran/29755] " burnus at gcc dot gnu dot org
2006-11-08 10:01 ` patchapp at dberlin dot org
2006-11-08 22:23 ` [Bug fortran/29755] [4.2 only] " burnus at gcc dot gnu dot org
2006-11-08 22:24 ` burnus at gcc dot gnu dot org
2006-11-08 22:24 ` burnus at gcc dot gnu dot org
2006-11-08 22:36 ` burnus at gcc dot gnu dot org
2006-11-10  7:43 ` pault at gcc dot gnu dot org
2006-11-10 17:14 ` pault at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).