From patchwork Sun Oct 24 03:38:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 69024 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 94C57B70A5 for ; Sun, 24 Oct 2010 14:39:10 +1100 (EST) Received: (qmail 13132 invoked by alias); 24 Oct 2010 03:39:07 -0000 Received: (qmail 13123 invoked by uid 22791); 24 Oct 2010 03:39:07 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Oct 2010 03:39:02 +0000 Received: from eggs.gnu.org ([140.186.70.92]:40881) by fencepost.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1P9rQC-00051L-Hp for gcc-patches@gnu.org; Sat, 23 Oct 2010 23:39:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9rQB-0005Gv-K5 for gcc-patches@gnu.org; Sat, 23 Oct 2010 23:39:00 -0400 Received: from smtp131.iad.emailsrvr.com ([207.97.245.131]:54290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9rQB-0005Gm-FC for gcc-patches@gnu.org; Sat, 23 Oct 2010 23:38:59 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp33.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id B33C63016B for ; Sat, 23 Oct 2010 23:38:58 -0400 (EDT) Received: from dynamic7.wm-web.iad.mlsrvr.com (dynamic7.wm-web.iad1a.rsapps.net [192.168.2.148]) by smtp33.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id A2AF83014F for ; Sat, 23 Oct 2010 23:38:58 -0400 (EDT) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic7.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 9514A153806A for ; Sat, 23 Oct 2010 23:38:58 -0400 (EDT) Received: by www2.webmail.us (Authenticated sender: nicola.pero@meta-innovation.com, from: nicola.pero@meta-innovation.com) with HTTP; Sun, 24 Oct 2010 05:38:58 +0200 (CEST) Date: Sun, 24 Oct 2010 05:38:58 +0200 (CEST) Subject: PR objc/24393 From: "Nicola Pero" To: "gcc-patches@gnu.org" MIME-Version: 1.0 X-Type: plain Message-ID: <1287891538.609128239@192.168.2.229> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Another ObjC bug that we have already fixed in trunk. Ok to commit two testcases ? Thanks Index: ChangeLog =================================================================== --- ChangeLog (revision 165896) +++ ChangeLog (working copy) @@ -1,5 +1,17 @@ 2010-10-24 Nicola Pero + PR objc/24393 + * objc.dg/pr24393.m: New. + * obj-c++.dg/pr24393.mm: New. + +2010-10-24 Nicola Pero Index: objc.dg/pr24393.m =================================================================== --- objc.dg/pr24393.m (revision 0) +++ objc.dg/pr24393.m (revision 0) @@ -0,0 +1,10 @@ +/* { dg-compile } */ +#include + +@interface Foo +{ + Class isa; +} +- (void) doSomething:(id object; /* { dg-error "xpected .\\)." } */ +- (void) someOtherMethod; +@end Index: obj-c++.dg/pr24393.mm =================================================================== --- obj-c++.dg/pr24393.mm (revision 0) +++ obj-c++.dg/pr24393.mm (revision 0) @@ -0,0 +1,10 @@ +/* { dg-compile } */ +#include + +@interface Foo +{ + Class isa; +} +- (void) doSomething:(id object; /* { dg-error "xpected .\\)." } */ +- (void) someOtherMethod; +@end