public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/34199] segfault for TRANSFER integer to TYPE(C_PTR)
Date: Sat, 06 Sep 2008 19:16:00 -0000	[thread overview]
Message-ID: <20080906191447.22352.qmail@sourceware.org> (raw)
In-Reply-To: <bug-34199-13404@http.gcc.gnu.org/bugzilla/>



------- Comment #8 from dominiq at lps dot ens dot fr  2008-09-06 19:14 -------
Extracted from
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/c553e0034bab977c
the following code

module bug1 
   use ISO_C_BINDING 
   implicit none 
   contains 
      subroutine sub1(x) 
         type(C_PTR) x 
         write(*,'(z16.16)') transfer(x,0_C_INTPTR_T) 
      end subroutine sub1 
      subroutine sub2(x) 
         type(C_FUNPTR) x 
         write(*,'(z16.16)') transfer(x,0_C_INTPTR_T) 
      end subroutine sub2 
end module bug1 
program test 
   use bug1 
   implicit none 
   call sub1(transfer(7_C_INTPTR_T,C_NULL_PTR)) 
   call sub2(transfer(7_C_INTPTR_T,C_NULL_FUNPTR)) 
end program test 

gives with trunk and 4.3.2

pr34199_3.f90:7: internal compiler error: Bus error
Please submit a full bug report,


-- 


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


  parent reply	other threads:[~2008-09-06 19:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-22 21:48 [Bug fortran/34199] New: " burnus at gcc dot gnu dot org
2007-11-24 23:03 ` [Bug fortran/34199] " burnus at gcc dot gnu dot org
2007-11-25  3:11 ` pinskia at gcc dot gnu dot org
2008-02-24 14:04 ` fxcoudert at gcc dot gnu dot org
2008-02-25 12:09 ` fxcoudert at gcc dot gnu dot org
2008-03-08 19:14 ` fxcoudert at gcc dot gnu dot org
2008-04-28 12:35 ` burnus at gcc dot gnu dot org
2008-05-14 23:24 ` fxcoudert at gcc dot gnu dot org
2008-09-06 19:13 ` dominiq at lps dot ens dot fr
2008-09-06 19:16 ` dominiq at lps dot ens dot fr [this message]
2008-09-06 21:17 ` dominiq at lps dot ens dot fr
2009-04-21 16:02 ` jakub at gcc dot gnu dot org
2009-07-22 10:35 ` jakub at gcc dot gnu dot org
2009-10-15 12:53 ` jakub at gcc dot gnu dot org
2010-01-21 13:19 ` jakub at gcc dot gnu dot org
2010-04-30  8:57 ` jakub at gcc dot gnu dot org
     [not found] <bug-34199-4@http.gcc.gnu.org/bugzilla/>
2010-10-01 11:49 ` jakub at gcc dot gnu.org
2010-12-19 10:54 ` dominiq at lps dot ens.fr
2010-12-19 11:24 ` burnus at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080906191447.22352.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).