<html>
<head>
<base href="https://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 with array subscript operators applied to functions returning vector types."
href="https://llvm.org/bugs/show_bug.cgi?id=25523">25523</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion with array subscript operators applied to functions returning vector types.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pierregousseau14@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15287" name="attach_15287" title="test case">attachment 15287</a> <a href="attachment.cgi?id=15287&action=edit" title="test case">[details]</a></span>
test case
Using latest clang on trunk:
<a href="https://llvm.org/svn/llvm-project/cfe/trunk@253016">https://llvm.org/svn/llvm-project/cfe/trunk@253016</a>
The attached test case causes clang to assert given the follwing options:
$> clang -cc1 -analyze "-analyzer-checker=core" "trim.c"
Assertion failed: A->isGLValue() || (!AMgr.getLangOpts().CPlusPlus &&
A->getType().isCForbiddenLValueType()), file
<...>llvm\tools\clang\lib\StaticAnalyzer\Core\ExprEngine.cpp, line 1972</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>