http://llvm.org/bugs/show_bug.cgi?id=13869
Bug #: 13869
Summary: clang incorrectly diagnoses template operator* as
invalid
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Testcase (from g++.old-deja/g++.pt/overload8.C):
struct baz;
void operator*(baz&, double);
template <class T> inline T operator*(double s, const T &p);
void m(baz& a) { a * .5; }
gcc accepts this; clang gives an error "overloaded 'operator*' must have at
least one parameter of class or enumeration type". Doug says clang should
accept this.
--
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