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

           Summary: Friends allowed to define member functions
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


We accept the following:

struct bar {
 void baz();
};

struct foo {
  friend void bar::baz() { }
};

which is ill-formed as bar::baz is a) a qualified-name and b) not at namespace
scope. We should error 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

Reply via email to