From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F5C8383E806; Mon, 25 May 2020 14:23:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F5C8383E806 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590416620; bh=uO1C+2jvHfvirugDk47Jf3ryxCR1qS1BtvTZPUN3pjU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gI7PT9hyt10yQ0NKNu5BosTwFQEX4tH7BvcV4qlWVI6sPxvGE4pwX/x+ml0TBJrp8 Vv9i5tyFrSanp06MioqF2O83wmOBkdI2Rp4i60vVdy4zbwyNmjQRIS0MBxOWgZAZc7 Bl6YYGIdLmkaicfqcgPnLnwLVRlZJLNWBsFKbRBI= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95197] libgomp/testsuite/libgomp.c++/for-27.C fails with -std=c++17 Date: Mon, 25 May 2020 14:23:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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, 25 May 2020 14:23:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95197 --- Comment #1 from Jakub Jelinek --- For e.g. void bar (I &a); void foo (I &a) { #pragma omp task //firstprivate (a) bar (a); } with the same templates this is handled by omp_cxx_notice_variable, which w= ill 1068 get_copy_ctor (type, tf_none); 1069 get_dtor (type, tf_none); because when it is done only during gimplification, we don't instantiate it anymore. So, I think I need to go through all the lang_hooks.decls.omp_finish_clause calls in the gimplifier and deal with it similarly during genericization ti= me.=