[llvm-bugs] [Bug 24751] New: Assertion `!LocalDeclMap.count(VD) && "Decl already exists in LocalDeclMap!"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 8 12:47:41 PDT 2015


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

            Bug ID: 24751
           Summary: Assertion `!LocalDeclMap.count(VD) && "Decl already
                    exists in LocalDeclMap!"' failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Still reducing this, but attaching a somewhat reduced version.

$ clang -cc1 -triple i686-pc-windows-msvc18.0.0 -emit-obj -fms-extensions
-fms-compatibility -std=c++11 -fdelayed-template-parsing b.ii

clang: ../tools/clang/lib/CodeGen/CodeGenFunction.h:3043: void
clang::CodeGen::CodeGenFunction::setAddrOfLocalVar(const clang::VarDecl*,
clang::CodeGen::Address): Assertion `!LocalDeclMap.count(VD) && "Decl already
exists in LocalDeclMap!"' failed.
#0 0x1941cb8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1941cb8)
#1 0x1940bf6 llvm::sys::RunSignalHandlers()
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1940bf6)
#2 0x1940e21 SignalHandler(int)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1940e21)
#3 0x7fbc941a4340 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10340)
#4 0x7fbc933c5cc9 gsignal
/build/buildd/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x7fbc933c90d8 abort /build/buildd/eglibc-2.19/stdlib/abort.c:91:0
#6 0x7fbc933beb86 __assert_fail_base
/build/buildd/eglibc-2.19/assert/assert.c:92:0
#7 0x7fbc933bec32 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc32)
#8 0x1b47ac5
clang::CodeGen::CodeGenFunction::EmitCapturedLocals(clang::CodeGen::CodeGenFunction&,
clang::Stmt const*, bool)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1b47ac5)
#9 0x1b48556
clang::CodeGen::CodeGenFunction::startOutlinedSEHHelper(clang::CodeGen::CodeGenFunction&,
bool, clang::Stmt const*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1b48556)
#10 0x1b48938
clang::CodeGen::CodeGenFunction::GenerateSEHFinallyFunction(clang::CodeGen::CodeGenFunction&,
clang::SEHFinallyStmt const&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1b48938)
#11 0x1b48a3b
clang::CodeGen::CodeGenFunction::EnterSEHTryStmt(clang::SEHTryStmt const&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1b48a3b)
#12 0x1b48cc5 clang::CodeGen::CodeGenFunction::EmitSEHTryStmt(clang::SEHTryStmt
const&) (/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1b48cc5)
#13 0x1bf22af
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1bf22af)
#14 0x1c117fc
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&,
clang::Stmt const*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1c117fc)
#15 0x1c17f2d clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1c17f2d)
#16 0x1a594d6
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1a594d6)
#17 0x1a6d5c1
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1a6d5c1)
#18 0x1a6d866 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1a6d866)
#19 0x1a6d884 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1a6d884)
#20 0x1a6d999 clang::CodeGen::CodeGenModule::Release()
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1a6d999)
#21 0x1f71704 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1f71704)
#22 0x222b9bb clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x222b9bb)
#23 0x1f7255e clang::CodeGenAction::ExecuteAction()
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1f7255e)
#24 0x1cdf356 clang::FrontendAction::Execute()
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1cdf356)
#25 0x1cbe079 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1cbe079)
#26 0x1d5a9ae clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x1d5a9ae)
#27 0x951c58 cc1_main(llvm::ArrayRef<char const*>, char const*, void*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x951c58)
#28 0x90ff83 main
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x90ff83)
#29 0x7fbc933b0ec5 __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:321:0
#30 0x94db14 _start
(/usr/local/google/work/llvm/build.release/bin/clang-3.7+0x94db14)
Stack dump:
0.    Program arguments: /work/llvm/build.release/bin/clang -cc1 -triple
i686-pc-windows-msvc18.0.0 -emit-obj -fms-extensions -fms-compatibility
-std=c++11 -fdelayed-template-parsing /tmp/b.ii 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.   
d:\src\depot_tools\win_toolchain\vs2013_files\win8sdk/Include/um/commctrl.inl:4553:315:
Generating code for declaration
'CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY'

-- 
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/20150908/9e12a4d4/attachment.html>


More information about the llvm-bugs mailing list