[LLVMbugs] [Bug 12126] New: CLANG++ fails to report for Befriending inaccessible name.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 28 19:55:41 PST 2012


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

             Bug #: 12126
           Summary: CLANG++ fails to report for Befriending inaccessible
                    name.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rahulsingh.mnnit at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


class A {
private:
  void f();        // { dg-error "private" }
};

class B {
  friend void A::f();    // { dg-error "context" }
};



For the above test case,
Clang++ fails to notify error about illegal use of f() defined as private in
Class A.

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