This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Quoting and the expr parser


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]