<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-on-invalid with a fragile combination of typo corrections and whitespace"
href="http://llvm.org/bugs/show_bug.cgi?id=16676">16676</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash-on-invalid with a fragile combination of typo corrections and whitespace
</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>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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>matthewbg@google.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>$ cat test.cc
struct S { int i; };
struct T { S* get_s(); };
int f(S* s) {
T t;
return t.get_s
.i;
}
$ clang -fsyntax-only test.cc
test.cc:5:12: error: reference to non-static member function must be called;
did you mean to call it with no arguments?
return t.get_s
~~^~~~~
()
/usr/local/google/home/matthewbg/test.cc:6:7: error: member reference type 'S
*' is a pointer; maybe you meant to use '->'?
clang: llvm/tools/clang/lib/Frontend/TextDiagnostic.cpp:973: void
highlightRange(const clang::CharSourceRange &, unsigned int, clang::FileID,
const <anonymous>::SourceColumnMap &, std::string &, const clang::SourceManager
&, const clang::LangOptions &): Assertion `StartColNo <= EndColNo && "Trying to
highlight whitespace??"' failed.</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>