From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13652 invoked by alias); 8 Dec 2014 13:32:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13605 invoked by uid 48); 8 Dec 2014 13:32:05 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/62007] default(none) conflicts with iteration variable in openmp parallel loop simd Date: Mon, 08 Dec 2014 13:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg00738.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62007 --- Comment #8 from Jakub Jelinek --- I think the message is correct, or at least the case is highly unclear, the OpenMP 4.0 standard has various unclear corner cases. The thing is, the loop iterator is predetermined linear, and the linear clause makes implicit reference to the outer var, but as linear clause is not allowed on the parallel, it can't be specified there and with default(none) you are requesting that everything is specified there explicitly. I can only suggest using non-combined construct in that case if you for some reason need default(none), say: !$omp parallel private (i_ct) default(none) !$omp do simd do i_ct = 1, 10 ... end do !$omp end parallel or so.