[LLVMbugs] [Bug 22326] New: Assertion failed: ((t.isNull() || !t->isReferenceType()) && "Expressions can't have reference type"),
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jan 24 19:11:40 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22326
Bug ID: 22326
Summary: Assertion failed: ((t.isNull() ||
!t->isReferenceType()) && "Expressions can't have
reference type"),
Product: clang
Version: 3.5
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: stephenry at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13731
--> http://llvm.org/bugs/attachment.cgi?id=13731&action=edit
Source file to cause crash
The following commands causes the above assertion to fail within clang. Using
BREW clang on MACOSX10.10.
Run using:
/usr/local/opt/llvm/bin/clang -fsyntax-only -Xclang -code-completion-macros -x
c++ -Xclang -code-completion-at=-:59:9 /tmp/rtags/src/CursorInfo.cpp
fatal error: cannot locate code-completion file <stdin>
Assertion failed: ((t.isNull() || !t->isReferenceType()) && "Expressions can't
have reference type"), function setType, file
/private/tmp/llvm-yAEsf9/llvm-3.5.1.src/tools/clang/lib/Sema/../../include/clang/AST/Expr.h,
line 134.
0 libLLVM-3.5.dylib 0x00000001036eada0
llvm::sys::PrintStackTrace(__sFILE*) + 40
1 libLLVM-3.5.dylib 0x00000001036eb18b SignalHandler(int) + 248
2 libsystem_platform.dylib 0x00007fff86ff3f1a _sigtramp + 26
3 libsystem_platform.dylib 0x0000000000000002 _sigtramp + 2030092546
4 libLLVM-3.5.dylib 0x00000001036eaff2 abort + 22
5 libLLVM-3.5.dylib 0x00000001036eafdc abort + 0
6 clang 0x000000010258539f
std::__1::__vector_base<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > > >::~__vector_base() + 1195
7 clang 0x0000000102586a34
std::__1::__tree<std::__1::__value_type<clang::QualType,
clang::CXXBaseSpecifier*>, std::__1::__map_value_compare<clang::QualType,
std::__1::__value_type<clang::QualType, clang::CXXBaseSpecifier*>,
clang::QualTypeOrdering, true>,
std::__1::allocator<std::__1::__value_type<clang::QualType,
clang::CXXBaseSpecifier*> >
>::destroy(std::__1::__tree_node<std::__1::__value_type<clang::QualType,
clang::CXXBaseSpecifier*>, void*>*) + 1032
8 clang 0x000000010254b144
llvm::SmallVectorImpl<clang::sema::DelayedDiagnostic>::operator=(llvm::SmallVectorImpl<clang::sema::DelayedDiagnostic>&&)
+ 11666
9 clang 0x0000000102415fea void
std::__1::__tree_right_rotate<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*)
+ 15002
10 clang 0x0000000102415957 void
std::__1::__tree_right_rotate<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*)
+ 13319
11 clang 0x000000010243089c void
std::__1::__tree_right_rotate<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*)
+ 123724
12 clang 0x000000010242f81d void
std::__1::__tree_right_rotate<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*)
+ 119501
13 clang 0x000000010241d89f void
std::__1::__tree_right_rotate<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*)
+ 45903
14 clang 0x000000010246d82e
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 22118
15 clang 0x000000010246d63d
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 21621
16 clang 0x000000010246ce5f
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 19607
17 clang 0x000000010246c404
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 16956
18 clang 0x0000000102413cf5 void
std::__1::__tree_right_rotate<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*)
+ 6053
19 clang 0x000000010219da31
std::__1::__tree<std::__1::__value_type<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit>,
std::__1::__map_value_compare<clang::edit::FileOffset,
std::__1::__value_type<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit>, std::__1::less<clang::edit::FileOffset>,
true>, std::__1::allocator<std::__1::__value_type<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit> >
>::destroy(std::__1::__tree_node<std::__1::__value_type<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit>, void*>*) + 4769
20 clang 0x000000010217b51b
std::__1::__vector_base<clang::CompilerInstance*,
std::__1::allocator<clang::CompilerInstance*> >::~__vector_base() + 14371
21 clang 0x000000010214df65
std::__1::enable_if<__is_forward_iterator<char const*>::value, void>::type
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >::__init<char const*>(char const*, char const*) +
3205
22 clang 0x00000001021470bf
23 clang 0x000000010214c65f
std::__1::__split_buffer<llvm::SourceMgr::SrcBuffer,
std::__1::allocator<llvm::SourceMgr::SrcBuffer>&>::~__split_buffer() + 6583
24 libdyld.dylib 0x00007fff83e835c9 start + 1
Stack dump:
0. Program arguments: /usr/local/Cellar/llvm/3.5.1/bin/clang -cc1 -triple
x86_64-apple-macosx10.10.0 -fsyntax-only -disable-free -main-file-name
CursorInfo.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 241.9
-dwarf-column-info -resource-dir
/usr/local/Cellar/llvm/3.5.1/bin/../lib/clang/3.5.1 -stdlib=libc++
-fdeprecated-macro -fdebug-compilation-dir /tmp/rtags/src -ferror-limit 19
-fmessage-length 233 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-code-completion-macros -code-completion-at=-:59:9 -x c++
/tmp/rtags/src/CursorInfo.cpp
1. /tmp/rtags/src/Location.h:165:69: current parser token ''
2. /tmp/rtags/src/Location.h:51:1: parsing struct/union/class body
'Location'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.1 (tags/RELEASE_351/final)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: error: unable to execute command: Illegal instruction: 4
clang: note: diagnostic msg: Error generating preprocessed source(s).
--
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/20150125/f2d7f48a/attachment.html>
More information about the llvm-bugs
mailing list