From: Jakub Jelinek Date: Thu, 7 Apr 2011 18:31:43 +0000 (+0200) Subject: re PR fortran/48117 (ICE: OpenMP; in build_int_cst_wide, at tree.c:1178) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c714e2423e06b8960a240c0293eb2d4da1e9d10d;p=gcc.git re PR fortran/48117 (ICE: OpenMP; in build_int_cst_wide, at tree.c:1178) PR fortran/48117 * gfortran.dg/gomp/pr48117.f90: New test. From-SVN: r172119 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f17362e5468..01b95ae6454 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2011-04-07 Jakub Jelinek + PR fortran/48117 + * gfortran.dg/gomp/pr48117.f90: New test. + PR debug/48343 * gcc.dg/torture/pr48343.c: New test. diff --git a/gcc/testsuite/gfortran.dg/gomp/pr48117.f90 b/gcc/testsuite/gfortran.dg/gomp/pr48117.f90 new file mode 100644 index 00000000000..bc8ad9bc35e --- /dev/null +++ b/gcc/testsuite/gfortran.dg/gomp/pr48117.f90 @@ -0,0 +1,11 @@ +! PR fortran/48117 +! { dg-do compile } +! { dg-options "-O2 -fopenmp" } + +subroutine foo(x) + character(len=*), optional :: x + character(len=80) :: v + !$omp master + if (present(x)) v = adjustl(x) + !$omp end master +end subroutine foo