http://llvm.org/bugs/show_bug.cgi?id=13915
Bug #: 13915
Summary: Friend's templated environment is incorrectly friended
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
$ cat t.cpp
template <class T >
struct A {
struct B { };
static void f () {
T::g ();
}
};
class C {
template <class T> friend struct A<T>::B;
static void g () { }
};
void h () {
A<C>::f ();
}
$ clang++ -c t.cpp
$
--
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