Richard Smith
59d26d2e67
PR12788: Remove unnecessary and incorrect special case for indirect fields.
...
This caused us to skip a step that was essential for correct access control.
llvm-svn: 199522
2014-01-17 22:29:43 +00:00
John McCall
d010ac9a48
Don't crash when diagnosing path-constrained protected
...
access to a private member to which we have special access.
rdar://12926092
llvm-svn: 176146
2013-02-27 00:08:19 +00:00
Douglas Gregor
ed2540d205
When we complain about a member being inaccessible due to a constraint
...
along an access path, add another note pointing at the member we
actually found.
llvm-svn: 104937
2010-05-28 04:34:55 +00:00
John McCall
3155f573f5
Turn access control on by default in -cc1.
...
Remove -faccess-control from -cc1; add -fno-access-control.
Make the driver pass -fno-access-control by default.
Update a bunch of tests to be correct under access control.
llvm-svn: 100880
2010-04-09 19:03:51 +00:00
John McCall
cdf40bed1b
Check in a motivating test for the revised access semantics.
...
llvm-svn: 100159
2010-04-02 00:11:49 +00:00
John McCall
d79b4d8173
Correct the calculation of access to more closely model the wording in
...
the standard.
llvm-svn: 100155
2010-04-02 00:03:43 +00:00
John McCall
5b0829a321
Improve access control diagnostics. Perform access control on member-pointer
...
conversions. Fix an access-control bug where privileges were not considered
at intermediate points along the inheritance path. Prepare for friends.
llvm-svn: 95775
2010-02-10 09:31:12 +00:00
John McCall
553c0796ee
Implement elementary access control.
...
llvm-svn: 94268
2010-01-23 00:46:32 +00:00