diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-10-17 21:52:09 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-10-17 21:52:09 +0000 |
commit | 90fbfdc31adfff5a614898af64600a4e34371345 (patch) | |
tree | 2d6e2e2e27434afe6a8c78faa3fe2eabe7e5ee36 /gcc/cp/lex.c | |
parent | 2e01b76611fdd27cfb04d3bbb1b349cbecb9230c (diff) | |
download | gcc-90fbfdc31adfff5a614898af64600a4e34371345.zip gcc-90fbfdc31adfff5a614898af64600a4e34371345.tar.gz gcc-90fbfdc31adfff5a614898af64600a4e34371345.tar.bz2 |
In gcc/: 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
Merge from 'apple/trunk' branch on FSF servers.
2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
Radar 4133425
* c-decl.c (undeclared_variable): Issue diagnostic on
private 'ivar' access.
In gcc/c-family/:
2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
Merge from 'apple/trunk' branch on FSF servers.
2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
Radar 4133425
* c-common.h (objc_diagnose_private_ivar): New decl.
* stub-objc.c (objc_diagnose_private_ivar): New stub.
In gcc/cp/:
2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
Merge from apple/trunk branch on FSF servers.
2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
Radar 4133425
* lex.c (unqualified_name_lookup_error): Issue diagnostic
for private 'ivar' access.
In gcc/objc/:
2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
Merge from 'apple/trunk' branch on FSF servers.
2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
Radar 4133425
* objc-act.c (objc_diagnose_private_ivar): New.
In gcc/testsuite/:
2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
Merge from 'apple/trunk' branch on FSF servers.
2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
Radar 4133425
* objc.dg/private-1.m: Test modified.
* obj-c++.dg/private-1.mm: Test modified.
From-SVN: r165601
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 8a894c7..c583d7d 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -449,7 +449,8 @@ unqualified_name_lookup_error (tree name) } else { - error ("%qD was not declared in this scope", name); + if (!objc_diagnose_private_ivar (name)) + error ("%qD was not declared in this scope", name); /* Prevent repeated error messages by creating a VAR_DECL with this NAME in the innermost block scope. */ if (current_function_decl) |