public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31390]  New: ICE due to transfer function
@ 2007-03-29 12:23 drewmccormack at mac dot com
  2007-03-29 16:11 ` [Bug fortran/31390] " fxcoudert at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: drewmccormack at mac dot com @ 2007-03-29 12:23 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1571 bytes --]

I receive the following ICE:
transferbug.f90: In function ‘bucketindexofkey’:
transferbug.f90:14: internal compiler error: in gfc_get_element_type, at
fortran/trans-types.c:741

when compiling this test code:

module InternalCompilerError

   type Byte
      private
      character(len=1)                                  :: singleByte
   end type

contains

   function BucketIndexOfKey(key) result (hash)
      type(Byte), intent(in)                            :: key(:)
      integer                                           :: hash
      integer, parameter                                :: intPrototype(1) = 0
      integer                                           :: intKey(
size(transfer(key, intPrototype)) )
      intKey = transfer(key, intPrototype)   ! This line causes the ICE
      hash = 0
   end function

end module

program main
   use InternalCompilerError
end program


The ICE seems to disappear when removing the following line, which makes me
think that it is the direct cause:

      intKey = transfer(key, intPrototype)   ! This line causes the ICE


Regards,
Drew McCormack


-- 
           Summary: ICE due to transfer function
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: drewmccormack at mac dot com
 GCC build triplet: 4.3.0 20070316 (experimental)
GCC target triplet: powerpc-apple-darwin8.9.0


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


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

* [Bug fortran/31390] ICE due to transfer function
  2007-03-29 12:23 [Bug fortran/31390] New: ICE due to transfer function drewmccormack at mac dot com
@ 2007-03-29 16:11 ` fxcoudert at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-03-29 16:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2007-03-29 17:10 -------
I'd say it's a duplicate of PR31193, which was fixed on 2007-03-22. At least,
your testcase doesn't trigger the bug on i386-linux nor on x86_64-linux.
Closing as duplicate: could you try it with an updated compiler (maybe download
it from http://gcc.gnu.org/wiki/GFortranBinaries, as I recently uploaded a new
MacOS/powerpc package) and reopen the PR if the bug is not fixed for you?

*** This bug has been marked as a duplicate of 31193 ***


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2007-03-29 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-29 12:23 [Bug fortran/31390] New: ICE due to transfer function drewmccormack at mac dot com
2007-03-29 16:11 ` [Bug fortran/31390] " fxcoudert 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).