[LLVMbugs] [Bug 7727] New: LLVM IR generation of compound statement ('{}') for Markzware's HashTable.ii
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 27 16:07:39 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7727
Summary: LLVM IR generation of compound statement ('{}') for
Markzware's HashTable.ii
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: james at markzware.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
the following error log is produced by trying to compile Hashtable.ii. File is
attached.
$ /opt/bin/clang++ Hashtable.ii
Assertion failed: ((Record->hasTrivialCopyConstructor() ||
Record->hasTrivialCopyAssignment()) && "Trying to aggregate-copy a type without
a trivial copy " "constructor or assignment operator"), function
EmitAggregateCopy, file CGExprAgg.cpp, line 796.
0 clang 0x00000001012cb442 std::vector<llvm::sys::Path,
std::allocator<llvm::sys::Path>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::sys::Path*,
std::vector<llvm::sys::Path, std::allocator<llvm::sys::Path> > >,
llvm::sys::Path const&) + 11634
1 clang 0x00000001012cc193 std::vector<llvm::sys::Path,
std::allocator<llvm::sys::Path>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::sys::Path*,
std::vector<llvm::sys::Path, std::allocator<llvm::sys::Path> > >,
llvm::sys::Path const&) + 15043
2 libSystem.B.dylib 0x00007fff86a4e35a _sigtramp + 26
3 libSystem.B.dylib 0x00007fff869f30aa tiny_malloc_from_free_list + 1196
4 libSystem.B.dylib 0x00007fff86ac99b4 __pthread_markcancel + 0
5 clang 0x0000000100197e6f llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateAnd(llvm::Value*, llvm::APInt const&, llvm::Twine const&) + 3711
6 clang 0x0000000100198000 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateAnd(llvm::Value*, llvm::APInt const&, llvm::Twine const&) + 4112
7 clang 0x000000010019af89 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateAnd(llvm::Value*, llvm::APInt const&, llvm::Twine const&) + 16281
8 clang 0x000000010019c946 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateAnd(llvm::Value*, llvm::APInt const&, llvm::Twine const&) + 22870
9 clang 0x000000010019a8be llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateAnd(llvm::Value*, llvm::APInt const&, llvm::Twine const&) + 14542
10 clang 0x000000010019ba9b llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateAnd(llvm::Value*, llvm::APInt const&, llvm::Twine const&) + 19115
11 clang 0x000000010018e6c0
clang::CanQual<clang::Type>::getTypePtr() const + 36864
12 clang 0x000000010019191c
clang::CanQual<clang::Type>::getTypePtr() const + 49756
13 clang 0x0000000100190c12
clang::CanQual<clang::Type>::getTypePtr() const + 46418
14 clang 0x0000000100195368
clang::CanQual<clang::Type>::getTypePtr() const + 64680
15 clang 0x0000000100195c5a
clang::CanQual<clang::Type>::getTypePtr() const + 66970
16 clang 0x00000001001779fa llvm::DenseMap<clang::Decl const*,
llvm::WeakVH, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::WeakVH> >::FindAndConstruct(clang::Decl const* const&)
+ 22426
17 clang 0x00000001001789ff llvm::DenseMap<clang::Decl const*,
llvm::WeakVH, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::WeakVH> >::FindAndConstruct(clang::Decl const* const&)
+ 26527
18 clang 0x000000010021e52b llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 20955
19 clang 0x0000000100221ce7 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 35223
20 clang 0x000000010021eb60 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 22544
21 clang 0x0000000100221a7b llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 34603
22 clang 0x0000000100221de5 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 35477
23 clang 0x000000010021eb60 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 22544
24 clang 0x000000010024b820
clang::SourceManager::getLocForStartOfFile(clang::FileID) const + 34144
25 clang 0x0000000100256ba7 llvm::DenseMap<clang::Decl const*,
llvm::Value*, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 40919
26 clang 0x00000001002570fa llvm::DenseMap<clang::Decl const*,
llvm::Value*, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 42282
27 clang 0x0000000100257293 llvm::DenseMap<clang::Decl const*,
llvm::Value*, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 42691
28 clang 0x00000001002572e3 llvm::DenseMap<clang::Decl const*,
llvm::Value*, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 42771
29 clang 0x000000010024134a llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateConstInBoundsGEP1_64(llvm::Value*, unsigned long long, llvm::Twine
const&) + 1450
30 clang 0x0000000100284eb0 llvm::DenseMap<clang::Stmt*, unsigned
int, llvm::DenseMapInfo<clang::Stmt*>, llvm::DenseMapInfo<unsigned int>
>::grow(unsigned int) + 1264
31 clang 0x0000000100241fac llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateConstInBoundsGEP1_64(llvm::Value*, unsigned long long, llvm::Twine
const&) + 4620
32 clang 0x000000010002e359 llvm::DenseMap<clang::IdentifierInfo
const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 6457
33 clang 0x00000001000028b5
34 clang 0x0000000100009474 std::vector<std::string,
std::allocator<std::string> >::operator=(std::vector<std::string,
std::allocator<std::string> > const&) + 10820
35 clang 0x0000000100000a34
Stack dump:
0. Program arguments: /opt/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0
-emit-obj -mrelax-all -disable-free -main-file-name Hashtable.ii -pic-level 1
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -resource-dir
/opt/lib/clang/2.8 -ferror-limit 19 -fmessage-length 186 -stack-protector 1
-fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/cX/cXKleH18HyiK1CWAuQ836k++-+Y/-Tmp-/cc-purpnR.o -x c++-cpp-output
Hashtable.ii
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. ./java/util/HashMap.h:397:14: Generating code for declaration
'java::util::HashMap<java::lang::String, java::lang::Object,
java::util::private_detail::cDefaultHashMapEntry>::contains'
4. ./java/util/HashMap.h:398:9: LLVM IR generation of compound statement
('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
--
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