[Bug objc/47118] New: ICE on incorrect parameter to @synchronized()
nicola at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 29 15:21:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47118
Summary: ICE on incorrect parameter to @synchronized()
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: objc
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: nicola@gcc.gnu.org
Here is a testcase that crashes GCC 4.6 --
typedef struct { float x; float y; } point;
int test (id object)
{
point x;
@synchronized (x)
{
return 1;
}
}
The compiler is not checking the type of the argument of @synchronized() and is
not dealing with unexpected types correctly.
Thanks
More information about the Gcc-bugs
mailing list