From patchwork Sun Oct 24 10:55:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 69029 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 B4EDEB7043 for ; Sun, 24 Oct 2010 21:55:24 +1100 (EST) Received: (qmail 28007 invoked by alias); 24 Oct 2010 10:55:21 -0000 Received: (qmail 27995 invoked by uid 22791); 24 Oct 2010 10:55:20 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SARE_SUB_ENC_UTF8 X-Spam-Check-By: sourceware.org Received: from smtp141.iad.emailsrvr.com (HELO smtp141.iad.emailsrvr.com) (207.97.245.141) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Oct 2010 10:55:15 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp34.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 426A13802F9 for ; Sun, 24 Oct 2010 06:55:14 -0400 (EDT) Received: from dynamic7.wm-web.iad.mlsrvr.com (dynamic7.wm-web.iad1a.rsapps.net [192.168.2.148]) by smtp34.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 2E6583802F8 for ; Sun, 24 Oct 2010 06:55:14 -0400 (EDT) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic7.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 1EAD9153806A for ; Sun, 24 Oct 2010 06:55:14 -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 12:55:14 +0200 (CEST) Date: Sun, 24 Oct 2010 12:55:14 +0200 (CEST) Subject: =?UTF-8?Q?PR=20objc/45735=20(more=20testcases)?= From: "Nicola Pero" To: "GCC Patches" MIME-Version: 1.0 X-Type: plain Message-ID: <1287917714.12423832@192.168.2.227> 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 PR objc/45735 is another "ice-on-invalid-code" bug which we have fixed in trunk for 4.6.0 while working on the ObjC method declaration/definition parsing. Ok to commit two testcases ? Thanks Index: ChangeLog =================================================================== --- ChangeLog (revision 165898) +++ ChangeLog (working copy) @@ -1,5 +1,11 @@ 2010-10-24 Nicola Pero + PR objc/45735 + * obj-c.dg/pr45735.mm: New. + * obj-c++.dg/pr45735.mm: New. + +2010-10-24 Nicola Pero + PR objc/24393 * objc.dg/pr24393.m: New. * obj-c++.dg/pr24393.mm: New. Index: objc.dg/pr45735.m =================================================================== --- objc.dg/pr45735.m (revision 0) +++ objc.dg/pr45735.m (revision 0) @@ -0,0 +1,4 @@ +/* { dg-compile } */ +@interface Fraction +-(void) setNumerator: (int) :(int) ; /* { dg-error "expected identifier" } */ +@end Index: obj-c++.dg/pr45735.mm =================================================================== --- obj-c++.dg/pr45735.mm (revision 0) +++ obj-c++.dg/pr45735.mm (revision 0) @@ -0,0 +1,4 @@ +/* { dg-compile } */ +@interface Fraction +-(void) setNumerator: (int) :(int) ; /* { dg-error "expected identifier" } */ +@end