<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 --- - Incorrect location of a friend declaration"
href="https://llvm.org/bugs/show_bug.cgi?id=23401">23401</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect location of a friend declaration
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</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>Support Libraries
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dpldobrev@yahoo.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>I have the following header:
class Class1
{
};
class Class2
{
public:
friend inline const Class1 operator+(const Class1& f1, const Class1& f2);
};
inline const Class1 operator+(const Class1& f1, const Class1& f2)
{
return TestTemplateClass2();
}
Decl::getLocation() returns line 8 for the friend - that's correct. But it
returns 8 for the friend declaration, that is, the function itself, too, while
the function is actually located at line 11. If the friend is deleted, then the
correct location is reported.</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>