public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "Thomas dot L dot Clune at nasa dot gov" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/44232] New: function result with pointer to strided component of argument Date: Fri, 21 May 2010 17:26:00 -0000 [thread overview] Message-ID: <bug-44232-19220@http.gcc.gnu.org/bugzilla/> (raw) (System/GCC parameters and compiler error messages given below) Minimal Fortran reproducer: module M_mod implicit none private public :: M_type public :: getKeys type M_type character(len=10) :: key end type M_type contains subroutine getKeys(this) type (M_type), target :: this(:) character(len=10), pointer :: keys(:) keys => this(:)%key end subroutine getKeys end module M_mod Produces an internal compiler error: bash-3.2$ gfortran -v -save-temps -c t.F90 Using built-in specs. Target: i386-apple-darwin8.10.1 Configured with: /tmp/gfortran-20090604/ibin/../gcc/configure --prefix=/usr/local/gfortran --enable-languages=c,fortran --with-gmp=/tmp/gfortran-20090604/gfortran_libs --enable-bootstrap Thread model: posix gcc version 4.5.0 20090604 (experimental) [trunk revision 148180] (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.5.8' '-v' '-save-temps' '-c' '-mtune=generic' /usr/local/gfortran/libexec/gcc/i386-apple-darwin8.10.1/4.5.0/f951 t.F90 -cpp /var/folders/e4/e484tj9PEd4Jm8SyiqE9Ak5hB2U/-Tmp-//ccjLAEQe.f90 -quiet -v -D__DYNAMIC__ t.F90 -fPIC -quiet -dumpbase t.F90 -mmacosx-version-min=10.5.8 -mtune=generic -auxbase t -version -fintrinsic-modules-path /usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0/finclude -o t.s GNU Fortran (GCC) version 4.5.0 20090604 (experimental) [trunk revision 148180] (i386-apple-darwin8.10.1) compiled by GNU C version 4.5.0 20090604 (experimental) [trunk revision 148180], GMP version 4.3.1, MPFR version 2.4.1-p5 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ignoring nonexistent directory "/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0/../../../../i386-apple-darwin8.10.1/include" #include "..." search starts here: #include <...> search starts here: /usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0/finclude /usr/local/include /usr/local/gfortran/include /usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0/include /usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0/include-fixed /usr/include End of search list. GNU Fortran (GCC) version 4.5.0 20090604 (experimental) [trunk revision 148180] (i386-apple-darwin8.10.1) compiled by GNU C version 4.5.0 20090604 (experimental) [trunk revision 148180], GMP version 4.3.1, MPFR version 2.4.1-p5 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 t.F90: In function 'getkeys': t.F90:14:0: internal compiler error: Bus error Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: function result with pointer to strided component of argument Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Thomas dot L dot Clune at nasa dot gov GCC target triplet: i386-apple-darwin8.10.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44232
next reply other threads:[~2010-05-21 17:26 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-05-21 17:26 Thomas dot L dot Clune at nasa dot gov [this message] 2010-05-21 18:20 ` [Bug fortran/44232] " kargl at gcc dot gnu dot org 2010-05-21 19:58 ` Thomas dot L dot Clune at nasa dot gov 2010-05-21 20:24 ` jvdelisle at gcc dot gnu dot org 2010-05-21 20:34 ` kargl at gcc dot gnu dot org 2010-05-21 20:49 ` Thomas dot L dot Clune at nasa dot gov 2010-05-21 21:05 ` dominiq at lps dot ens dot fr 2010-05-22 0:45 ` Thomas dot L dot Clune at nasa dot gov 2010-05-22 1:00 ` Thomas dot L dot Clune at nasa dot gov 2010-05-22 1:34 ` kargl at gcc dot gnu dot org 2010-05-22 1:59 ` Thomas dot L dot Clune at nasa dot gov 2010-05-22 10:04 ` dominiq at lps dot ens dot fr 2010-08-06 9:05 ` fxcoudert at gcc dot gnu dot 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-44232-19220@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).