From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8D5573854838; Tue, 29 Dec 2020 08:49:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D5573854838 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98471] New: libstdc++ fails to build with clang on windows because of filesystem bug Date: Tue, 29 Dec 2020 08:49:25 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live 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 attachments.created 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, 29 Dec 2020 08:49:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98471 Bug ID: 98471 Summary: libstdc++ fails to build with clang on windows because of filesystem bug Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- Created attachment 49849 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49849&action=3Dedit working patch to fix the issue #include int main() { } D:\hg\fast_io\.tmp>clang++ -o filesystem filesystem.cc -Ofast -std=3Dc++20 = -s In file included from filesystem.cc:1: In file included from D:\msys64\mingw64\include\c++\11.0.0\filesystem:45: D:\msys64\mingw64\include\c++\11.0.0\bits/fs_path.h:252:15: error: invalid = use of incomplete type 'std::filesystem::filesystem_error' throw filesystem_error( ^~~~~~~~~~~~~~~~~ D:\msys64\mingw64\include\c++\11.0.0\bits/fs_fwd.h:58:9: note: forward declaration of 'std::filesystem::filesystem_error' class filesystem_error; ^ In file included from filesystem.cc:1: In file included from D:\msys64\mingw64\include\c++\11.0.0\filesystem:45: D:\msys64\mingw64\include\c++\11.0.0\bits/fs_path.h:252:9: error: cannot th= row object of incomplete type 'std::filesystem::filesystem_error' throw filesystem_error( ^ ~~~~~~~~~~~~~~~~~ D:\msys64\mingw64\include\c++\11.0.0\bits/fs_fwd.h:58:9: note: forward declaration of 'std::filesystem::filesystem_error' class filesystem_error; ^ 2 errors generated.=