[LLVMbugs] [Bug 6818] clang++ permits use of private struct.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Apr 11 22:39:44 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6818
Nick Lewycky <nicholas at mxc.ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nicholas at mxc.ca
Resolution| |FIXED
--- Comment #2 from Nick Lewycky <nicholas at mxc.ca> 2010-04-12 00:39:43 CDT ---
Believe it or not r99761 is so old that it predates access control in clang,
access control being the term for public/protected/private in C++. With a
current clang from svn head, you should get:
$ clang++ pr6818.cc
pr6818.cc:9:11: error: 'Elem' is a private member of 'List'
List::Elem a;
^
pr6818.cc:3:16: note: declared private here
struct Elem {
^
1 error generated.
Please reopen if that isn't the case with clang post-r100880.
--
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