From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29553 invoked by alias); 26 Jan 2010 09:15:04 -0000 Received: (qmail 29381 invoked by uid 48); 26 Jan 2010 09:14:39 -0000 Date: Tue, 26 Jan 2010 09:15:00 -0000 Message-ID: <20100126091439.29380.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/42866] ICE for REDUCTION with ALLOCATABLE array as variable on SECTIONS In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" 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 X-SW-Source: 2010-01/txt/msg02929.txt.bz2 ------- Comment #1 from jakub at gcc dot gnu dot org 2010-01-26 09:14 ------- Created an attachment (id=19708) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19708&action=view) gcc45-pr42866.patch Patch I'm testing. BTW, the provided testcase is wrong, if more than one section is scheduled on the same thread, it will abort. The problem is that it overwrites the reduction array in each section rather than adds to it, so it can only succeed if each section is scheduled in a different thread. But scheduling of !$omp sections is implementation defined, there are no restrictions on that choice. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|UNCONFIRMED |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42866