[LLVMbugs] [Bug 8499] New: Assert/segfault reached trying to compile

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 28 11:37:48 PDT 2010


           Summary: Assert/segfault reached trying to compile
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mordred at inaugust.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=5693)
 --> (http://llvm.org/bugs/attachment.cgi?id=5693)
Broken Code Sample

Creating a default-constructed std::pair stack-dumps in the following way:

clang: /home/mordred/src/llvm/tools/clang/lib/CodeGen/CGExpr.cpp:605:
llvm::Value* clang::CodeGen::CodeGenFunction::EmitToMemory(llvm::Value*,
clang::QualType): Assertion `Value->getType()->isIntegerTy(1) && "value rep of
bool not i1"' failed.
Stack dump:
0.      Program arguments: /usr/local/clang/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name foo.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/usr/local/clang/bin/../lib/clang/2.9 -I /usr/local/clang/include -ferror-limit
19 -fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-0YJ9sv.s -x c++ foo.cc 
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      /usr/include/c++/4.4/bits/stl_pair.h:79:7: Generating code for
declaration 'std::pair<std::_Rb_tree_iterator<std::pair<const
std::basic_string<char>, Foo *> >, bool>::pair'
clang: error: clang frontend command failed due to signal 6 (use -v to see

With the attached foo-broken.cc on latest trunk. If I change it to
foo-fixed.cc, it works.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list