[LLVMbugs] [Bug 14129] New: friend function is not marked with 'friend' in debug info
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Oct 19 04:20:42 PDT 2012
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: unassignedclangbugs at nondot.org
ReportedBy: olga.a.chupina at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list