<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 --- - Crash with undefined variables with the name prefix "result""
href="http://llvm.org/bugs/show_bug.cgi?id=21899">21899</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash with undefined variables with the name prefix "result"
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>brettw@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Ran into this when working on this patch to Chromium:
<a href="https://codereview.chromium.org/772253003/">https://codereview.chromium.org/772253003/</a>
This line causes the failure:
EXPECT_EQ(value1, resulta.label); // TODO FILE CLANK BUG
(line 259866 in preprocessed .cpp file in attachment).
"resulta" is undefined. This crash happens with any undefined variable prefixed
with "result". Calling it "result123" crashes. Calling it "aesult123" will not
crash.
1.
../../chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:361:3
<Spelling=../../testing/gtest/include/gtest/gtest_pred_impl.h:77:63>: current
parser token ')'
2.
../../chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:38:1:
parsing namespace 'autofill'
3.
../../chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:341:63:
parsing function body 'TestBody'
4.
../../chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:341:63:
in compound statement ('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0 (trunk 223109)
Target: x86_64-unknown-linux-gnu
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: note: diagnostic msg:
********************</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>