http://llvm.org/bugs/show_bug.cgi?id=8499

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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
invocation)

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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to