From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B3E1B3851C02; Tue, 19 May 2020 00:14:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3E1B3851C02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589847251; bh=UutmcsJgyO5GxtL8bvIIsr9Fgxju90Y5FNbBNTL2weM=; h=From:To:Subject:Date:From; b=LugS1hsItdW/i1wd5fYuJHKmgwruFlZHIu9GeR/jDiMAxEVszkWXFFzQGVVVl7UK3 6CjUgb7Kw3x+9uoMA33YhqabFwjN240Qr3IIyBbS8U7VPdpk/ff/pkP3j3091H9dgB vbUvq5fM6VZH54wDshwoEQLKlxX9j09upgjKNQus= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95197] New: libgomp/testsuite/libgomp.c++/for-27.C fails with -std=c++17 Date: Tue, 19 May 2020 00:14:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Tue, 19 May 2020 00:14:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95197 Bug ID: 95197 Summary: libgomp/testsuite/libgomp.c++/for-27.C fails with -std=3Dc++17 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- See for why this fails. My workaround was --- a/libgomp/testsuite/libgomp.c++/for-27.C +++ b/libgomp/testsuite/libgomp.c++/for-27.C @@ -151,6 +151,12 @@ f4 (const I &x, const I &y) else if (results[i]) \ abort () +// FIXME: OpenMP seems to count on this being instantiated; the copy +// constructor is called in functions fn2/fn3/fn4. But in C++17 we +// elide this copy constructor, so it's never been instantiated. For +// now instantiate it explicitly. +template I::I(const I &); + int main () { Seems that OpenMP has to call mark_used or some such.=