From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18224 invoked by alias); 25 Aug 2009 14:18:33 -0000 Received: (qmail 18213 invoked by uid 22791); 25 Aug 2009 14:18:32 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 25 Aug 2009 14:18:27 +0000 Received: from int-mx07.intmail.prod.int.phx2.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7PEIJGK025666; Tue, 25 Aug 2009 10:18:19 -0400 Received: from hase.home (sebastian-int.corp.redhat.com [172.16.52.221]) by int-mx07.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7PEIGm1021735; Tue, 25 Aug 2009 10:18:17 -0400 From: Andreas Schwab To: Jiang Jilin Cc: Pierre Muller , Keith Seitz , tromey@redhat.com, gdb-patches@sourceware.org Subject: Re: [RFA] Token cleanup in c-exp.y References: <4A9313C2.3050907@redhat.com> <4A9367B2.4040900@redhat.com> <000601ca2568$0eedea60$2cc9bf20$@u-strasbg.fr> <7d77a27d0908250645t7b2c4465y2276c951ae296da4@mail.gmail.com> X-Yow: Everything will be ALL RIGHT if we can just remember things about ALGEBRA.. or SOCCER.. or SOCIALISM.. Date: Tue, 25 Aug 2009 15:11:00 -0000 In-Reply-To: <7d77a27d0908250645t7b2c4465y2276c951ae296da4@mail.gmail.com> (Jiang Jilin's message of "Tue, 25 Aug 2009 21:45:05 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00414.txt.bz2 Jiang Jilin writes: > On Tue, Aug 25, 2009 at 5:40 PM, Pierre Muller w= rote: >> =C2=A0 Just for information: >> doesn't this mean that >> the parser that previously accepted >> =C2=A0'-> =C2=A0*' with spaces between the arrow and the star, >> will now reject such patterns? >> =C2=A0Is this also what a C compile would do? > > Personally, I think '->*' is _not_ really a single token or > operation like '++' in ISO C Standard, so the patch is _not_ correct. In C++ both `.*' and `->*' are single tokens. In C, in a valid expression, `*' can never follow `.' or `->'. Andreas. --=20 Andreas Schwab, schwab@redhat.com GPG Key fingerprint =3D D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E "And now for something completely different."