[llvm-bugs] [Bug 35398] New: [Modules TS] assertion in lib/AST/Decl.cpp:1397: D->getCachedLinkage() == LV.getLinkage()

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 23 04:01:08 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35398

            Bug ID: 35398
           Summary: [Modules TS] assertion in lib/AST/Decl.cpp:1397:
                    D->getCachedLinkage() == LV.getLinkage()
           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

Created attachment 19460
  --> https://bugs.llvm.org/attachment.cgi?id=19460&action=edit
Reproducing script.

The attached reproducer triggers an assertion:

lib/AST/Decl.cpp:1397: clang::LinkageInfo
clang::LinkageComputer::getLVForDecl(const clang::NamedDecl*,
clang::LVComputationKind): Assertion `D->getCachedLinkage() == LV.getLinkage()'
failed.

D is function ansec(). Interestingly, making ansec() static gets rid of the
assertion.

-- 
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/20171123/a897ca17/attachment.html>


More information about the llvm-bugs mailing list