public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98471] New: libstdc++ fails to build with clang on windows because of filesystem bug
@ 2020-12-29  8:49 unlvsur at live dot com
  2020-12-29 10:18 ` [Bug libstdc++/98471] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: unlvsur at live dot com @ 2020-12-29  8:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98471

            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=49849&action=edit
working patch to fix the issue

#include<filesystem>

int main()
{

}

D:\hg\fast_io\.tmp>clang++ -o filesystem filesystem.cc -Ofast -std=c++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 throw
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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-14 20:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-29  8:49 [Bug c++/98471] New: libstdc++ fails to build with clang on windows because of filesystem bug unlvsur at live dot com
2020-12-29 10:18 ` [Bug libstdc++/98471] " redi at gcc dot gnu.org
2021-01-13  3:12 ` unlvsur at live dot com
2021-01-13  9:33 ` redi at gcc dot gnu.org
2021-01-13 10:12 ` unlvsur at live dot com
2021-01-14 16:27 ` [Bug libstdc++/98471] [11 Regression] " redi at gcc dot gnu.org
2021-01-14 16:28 ` cvs-commit at gcc dot gnu.org
2021-01-14 16:28 ` redi at gcc dot gnu.org
2021-01-14 20:04 ` unlvsur at live dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).