[llvm-bugs] [Bug 33910] New: [Modules TS] libstdc++ weakref issue

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 24 10:20:18 PDT 2017


            Bug ID: 33910
           Summary: [Modules TS] libstdc++ weakref issue
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: boris at codesynthesis.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Something recently introduced (~ past two weeks) is now causing the following
error when using Clang with libstdc++ on Linux:

$ cat <<EOF >std-core.mxx
export module std.core;
#include <stdexcept>

$ clang++-5.0 --version
clang version 5.0.0-svn308397-1~exp1 (trunk)

$ clang++-5.0 -std=c++1z -D__cpp_modules=201704 -fmodules-ts -o std.core.pcm
--precompile -Xclang -fmodules-embed-all-files -Xclang -fmodules-codegen
-Xclang -fmodules-debuginfo -x c++-module std-core.mxx
In file included from std-core.mxx:4:
In file included from
In file included from
In file included from
In file included from
In file included from
error: weakref declaration must have internal

A non-module program that uses the same header compiles fine.

Let me know if you need any extra information.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170724/03710e20/attachment.html>

More information about the llvm-bugs mailing list