User account creation filtered due to spam.
When compiling the espresso-5.4.0 fortran package with FFLAGS-fopenmp I get the following assertion: internal compiler error: in maybe_lookup_decl_in_outer_ctx, at omp-low.c:4134 0xa941e6 maybe_lookup_decl_in_outer_ctx /work/davshe01/oban-work-shoji/src/gcc/gcc/omp-low.c:4134 0xa9cadc scan_sharing_clauses /work/davshe01/oban-work-shoji/src/gcc/gcc/omp-low.c:1975 ...
Testcase?
Created attachment 40575 [details] Simple openmp test case that exposes the ICE Compile the test with "gfortran -fopenmp"
Confirmed on GCC 6 and trunk. GCC 5 doesn't ICE for me
Started with r233913, I'll have a look.
(In reply to Jakub Jelinek from comment #4) > Started with r233913, I'll have a look. Hi Jakub, just to let you know I posted a possible fix for 7.0 release on the mailing list yesterday if you want to have a look.
Author: davids Date: Thu Jan 26 10:41:35 2017 New Revision: 244922 URL: https://gcc.gnu.org/viewcvs?rev=244922&root=gcc&view=rev Log: 2017-01-26 David Sherwood <david.sherwood@arm.com> gcc/ PR middle-end/79212 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in all contexts. gcc/testsuite/ PR middle-end/79212 * gfortran.dg/gomp/sharing-4.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/gomp/sharing-4.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/gimplify.c trunk/gcc/testsuite/ChangeLog
Fixed on the trunk so far.
GCC 6.4 is being released, adjusting target milestone.