public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67311] New: ICE calling subroutine with derived type as argument within OpenMP parallel region
@ 2015-08-21 17:37 acreman at astro dot ex.ac.uk
  2015-08-21 18:36 ` [Bug fortran/67311] " dominiq at lps dot ens.fr
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: acreman at astro dot ex.ac.uk @ 2015-08-21 17:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67311

            Bug ID: 67311
           Summary: ICE calling subroutine with derived type as argument
                    within OpenMP parallel region
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acreman at astro dot ex.ac.uk
  Target Milestone: ---

The following test case produces an internal compiler error with recent
gfortran versions:

! == Begin test case ==
subroutine test
  call openmp_sub
end subroutine test

subroutine openmp_sub

  implicit none

  TYPE myType
    TYPE(myType), DIMENSION(:), POINTER :: x
  END TYPE myType

  type(myType) :: argument
!$OMP PARALLEL DEFAULT(NONE) PRIVATE(argument)
  call foo(argument)
!$OMP END PARALLEL

end subroutine openmp_sub
! == End test case ==

The command line used to build was:  gfortran -c -fopenmp test.f90
I see an ICE at versions 4.9.3 and 5.2 on SLES and gfortran 4.9.2 on Mac OS. 
The test case compiles OK with version 4.6.3 (SLES) and 4.8.2 (Ubuntu)

The output from gfortran 4.9.3 is: 

> gfortran -c -fopenmp test.f90
gfortran: internal compiler error: Segmentation fault (program f951)
0x40d14c execute
        ../../gcc-4.9.3/gcc/gcc.c:2854
0x40d514 do_spec_1
        ../../gcc-4.9.3/gcc/gcc.c:4658
0x40fdd6 process_brace_body
        ../../gcc-4.9.3/gcc/gcc.c:5941
0x40fdd6 handle_braces
        ../../gcc-4.9.3/gcc/gcc.c:5855
0x40e389 do_spec_1
        ../../gcc-4.9.3/gcc/gcc.c:5312
0x40fdd6 process_brace_body
        ../../gcc-4.9.3/gcc/gcc.c:5941
0x40fdd6 handle_braces
        ../../gcc-4.9.3/gcc/gcc.c:5855
0x40e389 do_spec_1
        ../../gcc-4.9.3/gcc/gcc.c:5312
0x40e0f3 do_spec_1
        ../../gcc-4.9.3/gcc/gcc.c:5427
0x40fdd6 process_brace_body
        ../../gcc-4.9.3/gcc/gcc.c:5941
0x40fdd6 handle_braces
        ../../gcc-4.9.3/gcc/gcc.c:5855
0x40e389 do_spec_1
        ../../gcc-4.9.3/gcc/gcc.c:5312
0x40fdd6 process_brace_body
        ../../gcc-4.9.3/gcc/gcc.c:5941
0x40fdd6 handle_braces
        ../../gcc-4.9.3/gcc/gcc.c:5855
0x40e389 do_spec_1
        ../../gcc-4.9.3/gcc/gcc.c:5312
0x40eea6 do_spec_2
        ../../gcc-4.9.3/gcc/gcc.c:4359
0x4104b8 do_spec(char const*)
        ../../gcc-4.9.3/gcc/gcc.c:4326
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

end of thread, other threads:[~2020-07-14 11:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-21 17:37 [Bug fortran/67311] New: ICE calling subroutine with derived type as argument within OpenMP parallel region acreman at astro dot ex.ac.uk
2015-08-21 18:36 ` [Bug fortran/67311] " dominiq at lps dot ens.fr
2015-08-24 18:33 ` jakub at gcc dot gnu.org
2015-08-24 18:57 ` mikael at gcc dot gnu.org
2015-08-24 18:59 ` jakub at gcc dot gnu.org
2015-08-24 19:11 ` burnus at gcc dot gnu.org
2015-08-24 19:35 ` mikael at gcc dot gnu.org
2020-06-24 17:57 ` burnus at gcc dot gnu.org
2020-06-25 15:15 ` burnus at gcc dot gnu.org
2020-07-14 10:57 ` cvs-commit at gcc dot gnu.org
2020-07-14 11:12 ` burnus 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).