[llvm-bugs] [Bug 28812] New: Assertion `!Lookup.empty() && Lookup.size() <= 2 && "more than two lookup results for field name"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 2 05:08:44 PDT 2016


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

            Bug ID: 28812
           Summary: Assertion `!Lookup.empty() && Lookup.size() <= 2 &&
                    "more than two lookup results for field name"' failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: biancacristinacristescu at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

This happens when building llvm self-hosted using libstdc++.
The invocation that fails is the following:

/home/biancacr/clang_build_/inst/bin/clang-3.9 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
DbiStream.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info
-debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -coverage-file
/home/biancacr/clang_build_/buildmodules/lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Raw/DbiStream.cpp.o
-resource-dir /home/biancacr/clang_build_/inst/bin/../lib/clang/4.0.0 -D
GTEST_HAS_RTTI=0 -D _DEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D
__STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I
/home/biancacr/clang_build_/buildmodules/lib/DebugInfo/PDB -I
/home/biancacr/clang_build_/src/lib/DebugInfo/PDB -I
/home/biancacr/clang_build_/buildmodules/include -I
/home/biancacr/clang_build_/src/include -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/c++/5.2.1
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/c++/5.2.1/backward
-internal-isystem /usr/local/include -internal-isystem
/home/biancacr/clang_build_/inst/bin/../lib/clang/4.0.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall
-W -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wmissing-field-initializers -Wno-long-long -Wcovered-switch-default
-Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Werror=date-time -pedantic
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/home/biancacr/clang_build_/buildmodules/lib/DebugInfo/PDB -ferror-limit 19
-fmessage-length 204 -fvisibility-inlines-hidden -fmodules
-fimplicit-module-maps -fmodules-cache-path=module.cache -fno-rtti
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-fmodules-local-submodule-visibility -x c++
/home/biancacr/clang_build_/src/lib/DebugInfo/PDB/Raw/DbiStream.cpp

The stack trace is:
 /home/biancacr/clang_build_/src/tools/clang/lib/Sema/SemaDeclCXX.cpp:11539:
clang::ExprResult clang::Sema::BuildCXXDefaultInitExpr(clang::SourceLocation,
clang::FieldDecl*): Assertion `!Lookup.empty() && Lookup.size() <= 2 && "more
than two lookup results for field name"' failed.
#0 0x00000000013f2528 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x13f2528)
#1 0x00000000013f04fe llvm::sys::RunSignalHandlers()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x13f04fe)
#2 0x00000000013f0674 SignalHandler(int)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x13f0674)
#3 0x00007f6c4c35fd10 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10d10)
#4 0x00007f6c4b14a1c7 gsignal
/build/glibc-qbmteM/glibc-2.21/signal/../sysdeps/unix/sysv/linux/raise.c:55:0
#5 0x00007f6c4b14be2a abort /build/glibc-qbmteM/glibc-2.21/stdlib/abort.c:91:0
#6 0x00007f6c4b1430bd __assert_fail_base
/build/glibc-qbmteM/glibc-2.21/assert/assert.c:92:0
#7 0x00007f6c4b143172 (/lib/x86_64-linux-gnu/libc.so.6+0x2e172)
#8 0x0000000002244497
clang::Sema::BuildCXXDefaultInitExpr(clang::SourceLocation, clang::FieldDecl*)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x2244497)
#9 0x0000000002261e32 CollectFieldInitializer(clang::Sema&, (anonymous
namespace)::BaseAndFieldInfo&, clang::FieldDecl*, clang::IndirectFieldDecl*)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x2261e32)
#10 0x0000000002271fb3
clang::Sema::SetCtorInitializers(clang::CXXConstructorDecl*, bool,
llvm::ArrayRef<clang::CXXCtorInitializer*>)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x2271fb3)
#11 0x0000000002273239 clang::Sema::ActOnMemInitializers(clang::Decl*,
clang::SourceLocation, llvm::ArrayRef<clang::CXXCtorInitializer*>, bool)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x2273239)
#12 0x0000000002584147
clang::Sema::InstantiateMemInitializers(clang::CXXConstructorDecl*,
clang::CXXConstructorDecl const*, clang::MultiLevelTemplateArgumentList const&)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x2584147)
#13 0x00000000025890c2
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x25890c2)
#14 0x00000000025877b7 clang::Sema::PerformPendingInstantiations(bool)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x25877b7)
#15 0x000000000258867a
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x258867a)
#16 0x00000000025877b7 clang::Sema::PerformPendingInstantiations(bool)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x25877b7)
#17 0x0000000002138c85 clang::Sema::ActOnEndOfTranslationUnit()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x2138c85)
#18 0x0000000001f25bf5
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1f25bf5)
#19 0x0000000001f1cc7b clang::ParseAST(clang::Sema&, bool, bool)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1f1cc7b)
#20 0x000000000189a46e clang::FrontendAction::Execute()
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x189a46e)
#21 0x000000000186fb86
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x186fb86)
#22 0x0000000001928572
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x1928572)
#23 0x00000000009cd1f0 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/biancacr/clang_build_/inst/bin/clang-3.9+0x9cd1f0)
#24 0x000000000099ed9a main
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x99ed9a)
#25 0x00007f6c4b135ac0 __libc_start_main
/build/glibc-qbmteM/glibc-2.21/csu/libc-start.c:323:0
#26 0x00000000009c9229 _start
(/home/biancacr/clang_build_/inst/bin/clang-3.9+0x9c9229)
Stack dump:

-- 
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/20160802/ce4caf2d/attachment-0001.html>


More information about the llvm-bugs mailing list