[llvm-bugs] [Bug 32556] New: Assertion "faked up lambda definition?" failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 6 14:47:36 PDT 2017


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

            Bug ID: 32556
           Summary: Assertion "faked up lambda definition?" failed.
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: panin at fb.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 18240
  --> https://bugs.llvm.org/attachment.cgi?id=18240&action=edit
Archive with files involved

Clang crashes in assertion when trying to build with -fmodules enabled:
void clang::ASTDeclReader::MergeDefinitionData(clang::CXXRecordDecl*,
clang::CXXRecordDecl::DefinitionData&&): Assertion `!DD.IsLambda &&
!MergeDD.IsLambda && "faked up lambda definition?"' failed.

Repro:
clang++ --std=c++14 -I . -Rmodule-build -fmodules -fcxx-modules
-fmodules-cache-path=./modules_out/_module_cache -c main.cpp -o main.o

Stack trace: see stack.txt in archive.

If I build without modules then it works fine:
clang++ --std=c++14 -I . -c main.cpp -o main.o

Tested this using latest clang:
$ clang++ --version
clang version 5.0.0 (http://llvm.org/git/clang.git
6abfe5cfd2160d5c1c8594673ae995151afad6f5) (http://llvm.org/git/llvm.git
54eda943893db59f794921a0affaa862b0ae0452)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /data/users/panin/llvm-hacking/build/bin

-- 
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/20170406/9acc14af/attachment.html>


More information about the llvm-bugs mailing list