[LLVMbugs] [Bug 13869] New: clang incorrectly diagnoses template operator* as invalid

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 18 13:53:22 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list