http://llvm.org/bugs/show_bug.cgi?id=16382

            Bug ID: 16382
           Summary: rejects-valid redeclaring static member function
           Product: clang
           Version: unspecified
          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

Testcase:

class A {
  static void f();
  static void f();
};

<stdin>:3:15: error: static and non-static member functions with the same
parameter types cannot be overloaded
  static void f();
              ^
<stdin>:2:15: note: previous declaration is here
  static void f() {}
              ^
1 error generated.

-- 
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

Reply via email to