public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/21986] New: Bad .mod file, ICE upon USE
@ 2005-06-09 16:54 Pierre dot Asselin at seagate dot com
  2005-06-09 16:56 ` [Bug fortran/21986] " Pierre dot Asselin at seagate dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Pierre dot Asselin at seagate dot com @ 2005-06-09 16:54 UTC (permalink / raw)
  To: gcc-bugs

$ gfortran bug.f90                               
bug.f90:8: internal compiler error: Segmentation fault

$ gfortran -v                                    
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc4/configure --enable-languages=c,c++,f95
Thread model: posix
gcc version 4.1.0 20050609 (experimental)

(This is this morning's CVS snapshot)
Hmf.  I don't see how to attach the "bug.f90" so I will place it in-line below.
It's short.  If I split into module and main program and compile separately,
boom.f90 ICE's at line zero.  Suspect a bad "modboom.mod" file.
-------------------------------------------
module modboom
  implicit none         ! can comment out
  private               ! comment out, lose the bug
  public:: dummysub     ! comment out, lose the bug

  type:: intwrapper     ! a straight integer won't do
    integer n
  end type intwrapper

contains

  subroutine dummysub(size, arg_array)
   type(intwrapper) :: size
   real, dimension(size%n) :: arg_array

   real :: local_array(4)       ! comment out, lose the bug

  end subroutine dummysub

end module modboom

program boom
    use modboom         ! bad .mod file ?
    print *, 'hey, we made it!'
end program boom
-------------------------------------------

-- 
           Summary: Bad .mod file, ICE upon USE
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Pierre dot Asselin at seagate dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: Huh ?  do you mean "i686-pc-linux-gnu" ?


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


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-21986-10796@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-26 19:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-09 16:54 [Bug fortran/21986] New: Bad .mod file, ICE upon USE Pierre dot Asselin at seagate dot com
2005-06-09 16:56 ` [Bug fortran/21986] " Pierre dot Asselin at seagate dot com
2005-06-09 17:08 ` pinskia at gcc dot gnu dot org
2005-06-23 20:36 ` tobi at gcc dot gnu dot org
2005-06-27 17:14 ` pinskia at gcc dot gnu dot org
2005-09-06 23:09 ` pault at gcc dot gnu dot org
     [not found] <bug-21986-10796@http.gcc.gnu.org/bugzilla/>
2005-10-26 19:44 ` 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).