public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43985]  New: ICE when assumed size cray-pointee passed as argument
@ 2010-05-04 17:58 langton at gcc dot gnu dot org
  2010-05-04 19:58 ` [Bug fortran/43985] [regresion 4.5/4.6] " kargl at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: langton at gcc dot gnu dot org @ 2010-05-04 17:58 UTC (permalink / raw)
  To: gcc-bugs

The recent fix for PR fortran/43331 introduced a regression for programs that
use OpenMP and pass assumed-size cray-pointees as function arguments.  Here is
an example:

         subroutine bob()
         implicit none
         real(8) peted
         pointer (ipeted, peted(*))
         integer(4) sz
!$omp parallel default(shared)

         call pete(peted(sz))

!$omp end parallel
         return
         end subroutine bob


When compiled with svn revision >= 157512, this generates an ICE:

% gfortran -fcray-pointer -fopenmp -c bug1.f90
bug1.f90: In function 'bob':
bug1.f90:9:0: 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.

My guess is that this is a result of 'peted' have the AS_ASSUMED_SIZE attribute
instead of AS_EXPLICIT in trans-decl.c


-- 
           Summary: ICE when assumed size cray-pointee passed as argument
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: langton at gcc dot gnu dot org
        ReportedBy: langton at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-05-06  9:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-04 17:58 [Bug fortran/43985] New: ICE when assumed size cray-pointee passed as argument langton at gcc dot gnu dot org
2010-05-04 19:58 ` [Bug fortran/43985] [regresion 4.5/4.6] " kargl at gcc dot gnu dot org
2010-05-04 20:00 ` [Bug fortran/43985] [4.5/4.6 Regression] " kargl at gcc dot gnu dot org
2010-05-04 21:40 ` burnus at gcc dot gnu dot org
2010-05-04 22:09 ` burnus at gcc dot gnu dot org
2010-05-05 11:53 ` burnus at gcc dot gnu dot org
2010-05-05 22:11 ` burnus at gcc dot gnu dot org
2010-05-06  9:26 ` burnus at gcc dot gnu dot org
2010-05-06  9:27 ` burnus 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).