------- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-05 08:01 -------
Confirmed, reduced testcase:
#include <objc/Object.h>
@interface NSObject
-lock;
@end
static NSObject *local_lock = (id)0;
void GSSetupEncodingTable(id t)
{
[(local_lock != (id)0 ? local_lock : t) lock];
}
----
For 4.0 and above you can remove the include. And this happens with the next
runtime also.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC host triplet|amd64-unknown-freebsd7.0 |
Keywords| |diagnostic
Known to fail| |4.1.0 4.2.0
Known to work| |4.0.0
Last reconfirmed|0000-00-00 00:00:00 |2006-05-05 08:01:46
date| |
Summary|false compiler warnings |[4.1/4.2 Regression] false
|generated in Objective-C |compiler warnings generated
|code |in Objective-C code
Target Milestone|--- |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27377