This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: vB() versus vB(void)
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Michael Elizabeth Chastain <mec dot gnu at mindspring dot com>
- Cc: carlton at kealia dot com, gdb at sources dot redhat dot com
- Date: Tue, 3 Feb 2004 22:53:54 -0500
- Subject: Re: vB() versus vB(void)
- References: <20040204035053.432FF4B364@berman.michael-chastain.com>
On Tue, Feb 03, 2004 at 10:50:53PM -0500, Michael Chastain wrote:
> This is a synthetic ctor. This happens with gcc 3.3.2 and gcc HEAD.
>
> Should I report this as a bug in gdb drow-cplus-branch,
> or should I just accept both forms as PASS?
>
> My preference is to accept both forms as PASS, but I want to check
> before I do that, in case you think that "vB(void)" is a symptom of a bug.
First of all, don't draw too many conclusions based on the output of
drow-cplus-branch. I've been playing with it pretty freely.
Secondly, you tell me. Which form is preferable in general - I used to
think (void) but the demangler, which I've been using as a rough style
guide lately, disagrees. Which form is preferable for default
constructors? Probably ().
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer