<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Assertion failed: ((t.isNull() || !t->isReferenceType()) && "Expressions can't have reference type"),"
href="http://llvm.org/bugs/show_bug.cgi?id=22326">22326</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: ((t.isNull() || !t->isReferenceType()) && "Expressions can't have reference type"),
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.5
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>stephenry@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13731" name="attach_13731" title="Source file to cause crash">attachment 13731</a> <a href="attachment.cgi?id=13731&action=edit" title="Source file to cause crash">[details]</a></span>
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*> >
<span class="quote">>::destroy(std::__1::__tree_node<std::__1::__value_type<clang::QualType,</span >
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> >
<span class="quote">>::destroy(std::__1::__tree_node<std::__1::__value_type<clang::edit::FileOffset,</span >
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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>