public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/47118] New: ICE on incorrect parameter to @synchronized()
@ 2010-12-29 15:21 nicola at gcc dot gnu.org
  2010-12-29 15:21 ` [Bug objc/47118] " nicola at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: nicola at gcc dot gnu.org @ 2010-12-29 15:21 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-30 22:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-29 15:21 [Bug objc/47118] New: ICE on incorrect parameter to @synchronized() nicola at gcc dot gnu.org
2010-12-29 15:21 ` [Bug objc/47118] " nicola at gcc dot gnu.org
2010-12-29 21:52 ` nicola at gcc dot gnu.org
2010-12-30 22:07 ` nicola at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).