This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Quoting and the expr parser
- From: Daniel Jacobowitz <drow at false dot org>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 5 Aug 2008 16:22:07 -0400
- Subject: Re: Quoting and the expr parser
- References: <4898A8D4.2040100@redhat.com>
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