http://llvm.org/bugs/show_bug.cgi?id=19352
Bug ID: 19352
Summary: getLocation() points to the wrong position for
FriendDecls
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Locations of friend declarations that are type declarations should point to the
declared identifier.
struct A {};
A g();
struct B {
friend void f(); // getLocation() correctly points to 'f'.
friend class X; // getLocation() incorrectly points to 'friend'.
// Of course arbitrary type expressions are allowed here, too, in
// which case I'd assume it's fine for getLocation() to point to
// the start:
friend decltype(g());
};
--
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