This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: PR c++/5645 gcc warns that pure virtual class not explicitly initialized


On 12/02/2008, Jason Merrill <jason@redhat.com> wrote:
> Manuel López-Ibáñez wrote:
> > On 12/11/2007, Jason Merrill <jason@redhat.com> wrote:
> >> I was suggesting that we check for any user-defined constructor.
> >
> > My question was: is there any function to find out that?
>
> There is now, TYPE_HAS_USER_CONSTRUCTOR.
>

I posted the following comment in PR 5645 [1]

Created an attachment (id=15136) [edit]
patch and testcases

This patch contains an attempt to implement the suggestions given here:
http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00149.html

It also contains all testcases from PR 5645 and PR 11159.

The tests in g++.dg/warn/pr5645.C pass.
The tests in g++.dg/warn/pr11159.C fail.

The fundamental problem is that I don't understand what this warning is warning
about. And nobody seems to have a clear idea either.

Unless someone can put forward a clear definition that is justified for the
testcases above and provides new testcases (either positive or negative), I am
not going to work anymore on this (except if asked to remove the warning
altogether).

[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5645#c9


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