public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44232]  New: function result with pointer to strided component of argument
@ 2010-05-21 17:26 Thomas dot L dot Clune at nasa dot gov
  2010-05-21 18:20 ` [Bug fortran/44232] " kargl at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: Thomas dot L dot Clune at nasa dot gov @ 2010-05-21 17:26 UTC (permalink / raw)
  To: gcc-bugs

(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


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

end of thread, other threads:[~2010-12-29 16:38 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-21 17:26 [Bug fortran/44232] New: function result with pointer to strided component of argument Thomas dot L dot Clune at nasa dot gov
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
     [not found] <bug-44232-4@http.gcc.gnu.org/bugzilla/>
2010-12-28 17:55 ` dfranke at gcc dot gnu.org
2010-12-29 16:30 ` Thomas.L.Clune at nasa dot gov
2010-12-29 16:38 ` dfranke at gcc dot gnu.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).