From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99E7C3857C65; Fri, 8 Mar 2024 02:04:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99E7C3857C65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709863470; bh=JXmBgs2O1FxQQpgdOF9Qoq6UyoarZ0rc9lhWsOSCLCA=; h=From:To:Subject:Date:From; b=UAFXqvwBarxWS7q7ic2/M2BsDk9vA3r+PTwNhgxNzcj8BntVc410KypRrA7zWcSTm 4xdcyIPtzW/B45nGZBcPmb/MbVIxEeb0CuiGYjnNOPVqAdDKIqu44ddJYaEpAKr1Ko Rj7Ov/zH+MgBkpNJMXMvk52J0vqO4X4cGtJUh74c= From: "michael.kenzel at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114275] New: using std::thread within a templated function in a module fails to compile Date: Fri, 08 Mar 2024 02:04:29 +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: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: michael.kenzel at gmail dot com 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114275 Bug ID: 114275 Summary: using std::thread within a templated function in a module fails to compile Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: michael.kenzel at gmail dot com Target Milestone: --- The following example will reproduce the issue: // A.ixx module; #include export module A; export void fun(auto&&) { std::thread([]{}).join(); } // main.cpp import A; int main() { fun(42); } build with g++ -std=3Dc++23 -fmodules-ts -c -x c++ A.ixx g++ -std=3Dc++23 -fmodules-ts main.cpp A.o results in =E2=80=98 /usr/include/c++/13/tuple:491: confused by earlier errors, bailing = out=