[LLVMbugs] [Bug 7808] New: method visibility ignored

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 4 02:16:54 PDT 2010


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

           Summary: method visibility ignored
           Product: clang
           Version: 2.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jtraue at informatik.tu-cottbus.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=5319)
 --> (http://llvm.org/bugs/attachment.cgi?id=5319)
demo code

The following code compiles with clang++ although a private method is called.
g++ reports the following error:
main.cc: In function ‘int main(int, char**)’:
main.cc:16: error: ‘int Test::bar()’ is private
main.cc:28: error: within this context

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