public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29098]  New: allocation of a pointer to a derived type crashes
@ 2006-09-15 11:38 vahtras at pdc dot kth dot se
  2006-09-15 13:12 ` [Bug fortran/29098] " paul dot richard dot thomas at cea dot fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: vahtras at pdc dot kth dot se @ 2006-09-15 11:38 UTC (permalink / raw)
  To: gcc-bugs

Symptom:
$ gfortran -c test.F90
test.F90: In function 'MAIN__':
test.F90:24: internal compiler error: in gfc_trans_call, at
fortran/trans-stmt.c:325
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Version:
$ gfortran -v
Using built-in specs.
Target: i386-linux
Configured with: ../gcc/configure
--prefix=/cosmic/coudert/tmp/gfortran-20060906/irun
--enable-languages=c,fortran
--host=i386-linux
--with-gmp=/cosmic/coudert/tmp/gfortran-20060906/gfortran_libs
Thread model: posix
gcc version 4.2.0 20060904 (experimental)


Code enclosed (cut down as much as possible)
 MODULE MAT
   TYPE BAS
      INTEGER :: R = 0,C = 0
   END TYPE BAS
   TYPE BLOCK
      INTEGER, DIMENSION(:), POINTER ::  R,C
      TYPE(BAS), POINTER, DIMENSION(:) :: NO => NULL()
   END TYPE BLOCK
   INTERFACE ASSIGNMENT(=)
      MODULE PROCEDURE BLASSIGN
   END INTERFACE
   CONTAINS
      SUBROUTINE BLASSIGN(A,B)
      TYPE(BLOCK), INTENT(IN) :: B
      TYPE(BLOCK), INTENT(INOUT) :: A
      INTEGER I,N
      ! ...
      END SUBROUTINE BLASSIGN
 END MODULE MAT
PROGRAM TEST
USE MAT
TYPE(BLOCK) MATRIX
POINTER MATRIX
ALLOCATE(MATRIX)
END


-- 
           Summary: allocation of a pointer to a derived type crashes
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vahtras at pdc dot kth dot se
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2006-11-06 17:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-15 11:38 [Bug fortran/29098] New: allocation of a pointer to a derived type crashes vahtras at pdc dot kth dot se
2006-09-15 13:12 ` [Bug fortran/29098] " paul dot richard dot thomas at cea dot fr
2006-09-15 14:16 ` paul dot richard dot thomas at cea dot fr
2006-09-16 19:57 ` pault at gcc dot gnu dot org
2006-09-17 11:30 ` patchapp at dberlin dot org
2006-10-04  4:48 ` pault at gcc dot gnu dot org
2006-10-04  4:49 ` pault at gcc dot gnu dot org
2006-11-06 17:19 ` pault 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).