This is the mail archive of the gdb-patches@sources.redhat.com 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: [PATCH] gdb.c++/method.exp


On Mon, Apr 08, 2002 at 02:21:41AM -0500, Michael Elizabeth Chastain wrote:
> I am committing the following patch to gdb.c++/method.exp.
> 
> This cleans up the script considerably.   It also fixes several spurious
> FAILs by accepting "A * const" and "const A * const".
> 
> After applying this patch, there is still 1 FAIL in two configurations:
> "print this in A::bar" still FAILs on native i686-pc-linux-gnu with
> gcc gcc-3_1-branch and gcc HEAD.

Erm... did we reach a conclusion about whether those const's were
really optional?  In a const method, there should be a const on the
type of 'this'.  Obviously we won't get it in g++2.95/stabs, and I
think we agreed that the latter const is optional (on the *); but the
const on 'A' should be part of the type of this for a const method.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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