http://llvm.org/bugs/show_bug.cgi?id=14129
Bug #: 14129
Summary: friend function is not marked with 'friend' in debug
info
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 9385
--> http://llvm.org/bugs/attachment.cgi?id=9385
bitcode file
Consider following test:
$ cat test.cpp
class X {
int i;
public:
void m(int);
friend void f(X&);
};
void X::m(int j) { i = j; }
void f(X& x) { x.i++; }
int main ()
{
X x;
x.m(3);
f(x);
return 0;
}
In debug info produced by the clang compiler (trunc and 3.1) the function f()
is a simple stand-alone function, class X has no member DW_AT_friend.
The bitcode file is attached.
Compilation line:
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs