public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "arjen.markus895 at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64474] New: transfer(c_null_ptr, ...) causes an internal error Date: Fri, 02 Jan 2015 15:14:00 -0000 [thread overview] Message-ID: <bug-64474-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64474 Bug ID: 64474 Summary: transfer(c_null_ptr, ...) causes an internal error Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: arjen.markus895 at gmail dot com I needed to pass a null pointer from Fortran to C. One attempt to do so was via code like this: module myinterfaces use iso_c_binding implicit none interface subroutine croutine( array ) bind(c,name='croutine') real, dimension(*) :: array end subroutine end interface contains subroutine myroutine real, dimension(1) :: dummy call croutine( transfer(c_null_ptr, dummy) ) end subroutine myroutine end module myinterfaces This causes an internal error: f951: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
next reply other threads:[~2015-01-02 15:14 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-01-02 15:14 arjen.markus895 at gmail dot com [this message] 2015-01-02 15:28 ` [Bug fortran/64474] [4.8 Regression] " janus at gcc dot gnu.org 2015-01-02 22:06 ` arjen.markus895 at gmail dot com 2015-01-09 11:31 ` rguenth at gcc dot gnu.org 2015-01-23 19:25 ` dominiq at lps dot ens.fr 2015-02-11 14:31 ` 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=bug-64474-4@http.gcc.gnu.org/bugzilla/ \ --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: linkBe 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).