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]

PR c++/5645 gcc warns that pure virtual class not explicitly initialized


:ADDPATCH c++:

The patch below avoids this warning by checking for nearly emptiness.
I am not sure that this is the correct approach for 100% cases, since
I ignore all specific cases that should be warned and that shouldn't.

Bootstrapped and regression tested.

OK to commit?

Cheers,

Manuel.

2007-10-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
 PR c++/5645
 * init.c (emit_mem_initializers): Don't warn if the base class is nearly empty.

testsuite/
 * g++.dg/warn/pr5645.C: New.

Attachment: fix-pr5645.diff
Description: Text document


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