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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs