From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6884 invoked by alias); 5 Aug 2008 20:22:53 -0000 Received: (qmail 6876 invoked by uid 22791); 5 Aug 2008 20:22:52 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Aug 2008 20:22:13 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E0942983EF; Tue, 5 Aug 2008 20:22:08 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id BCA5E983A9; Tue, 5 Aug 2008 20:22:08 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KQT2l-0003kC-Ur; Tue, 05 Aug 2008 16:22:07 -0400 Date: Tue, 05 Aug 2008 20:22:00 -0000 From: Daniel Jacobowitz To: Keith Seitz Cc: gdb@sourceware.org Subject: Re: Quoting and the expr parser Message-ID: <20080805202207.GA14077@caradoc.them.org> Mail-Followup-To: Keith Seitz , gdb@sourceware.org References: <4898A8D4.2040100@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4898A8D4.2040100@redhat.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00082.txt.bz2 On Tue, Aug 05, 2008 at 12:24:04PM -0700, Keith Seitz wrote: > Hi, > > I have a simple question: > > Why must one type "my_class::'operator+'" instead of simply > "my_class::operator+"? > > *Should* gdb accept the latter; after all, it's not ambiguous (assuming > it's not overloaded). Yes, it should. This is an omission in c-exp.y; cp-name-parser.y (not used for expressions) handles it correctly. -- Daniel Jacobowitz CodeSourcery