From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 59C2B394848D; Mon, 20 Apr 2020 10:42:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 59C2B394848D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587379364; bh=sQ4OrqZyvWb3DwcItkcdgfJB/m6H9aqhwrhzFG+TFT0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xI5+WhymTHQmR2yRfylZQ2CQ41S3+SxwYQvZOMDqfMbeerKBwyHrX71/2c7NcjbSs L5JcAPX4R0V9gkADsTQuFPtBA80ISzK+cTxUI4PV+b3lwQk+YfRzcWoOI/CHAeNBio jGzXuLuafGaZj9KDIICH+auMHcxunWcDvSy/e/Tc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/94120] [OpenACC] ICE in gimplify_adjust_omp_clauses_1 for 'declare' for variable outside scope Date: Mon, 20 Apr 2020 10:42:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-invalid-code, openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2020 10:42:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94120 --- Comment #9 from CVS Commits --- The master branch has been updated by Tobias Burnus : https://gcc.gnu.org/g:85d8c05a02bf7d1b256f806582a11e3fd8970a32 commit r10-7810-g85d8c05a02bf7d1b256f806582a11e3fd8970a32 Author: Tobias Burnus Date: Mon Apr 20 12:38:50 2020 +0200 Fix declare copyout in libgomp.oacc-c++/declare-pr94120.C Testing on the host does not make sense for 'declare copyout' for a same-scope stack-allocated variable. Once the copyout is done, the variable is gone. Hence, test the variable on the device. This can be revisit after the OpenACC semantic has been fixed; but with that fix, the test PASSes again with devices. PR middle-end/94120 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)' test case.=