[LLVMbugs] [Bug 7024] New: Private access error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 3 07:31:12 PDT 2010


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

           Summary: Private access error
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: John.Thompson.JTSoftware at gmail.com
                CC: llvmbugs at cs.uiuc.edu


template <class T> class A {
 int foo;
 int getFoo(A<int> &a) {
   return a.foo;

 }
};

C:\Sony\Clang\exp>clang -cc1 templ1.cpp
templ1.cpp:4:13: error: 'foo' is a private member of 'A<int>'
   return a.foo;
            ^
templ1.cpp:2:6: note: declared private here
 int foo;
     ^
1 error generated.

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