[LLVMbugs] [Bug 6716] New: Name lookup not finding friend function template definitions inside class template
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 26 14:12:26 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6716
Summary: Name lookup not finding friend function template
definitions inside class template
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com,
rjmccall at apple.com
template<typename T, typename U = T>
struct X { };
template<typename T>
struct Y {
template<typename U> friend void operator<<(X<T, U>&, const Y&) { }
};
void f(X<int, float> &x) {
x << Y<int>();
}
terfin:clang dgregor$ clang++ t.C
t.C:10:5: error: invalid operands to binary expression ('X<int, float>' and
'Y<int>')
x << Y<int>();
~ ^ ~~~~~~~~
1 diagnostic generated.
--
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