]> gcc.gnu.org Git - gcc.git/commit
re PR c++/5645 (gcc warns that pure virtual class not explicitly initialized)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Thu, 14 Feb 2008 23:11:04 +0000 (18:11 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 14 Feb 2008 23:11:04 +0000 (18:11 -0500)
commit8c95264b5cfb3f385f0929b6ff90f4c8d9b94905
treee38dc9a61c36b8f7994dae4ac12fe990e88f1885
parent101e174d2c7f1d97a276cf951bcc6d55ecbcabdd
re PR c++/5645 (gcc warns that pure virtual class not explicitly initialized)

        PR c++/5645
        PR c++/11159
        * class.c (type_has_user_nondefault_constructor): New fn.
        * cp-tree.h: Declare it.
        * init.c (emit_mem_initializers): Use it for -W warning about
        missing base initializer.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r132324
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/testsuite/g++.dg/warn/Wreorder-1.C
gcc/testsuite/g++.dg/warn/pr11159.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/pr5645.C [new file with mode: 0644]
This page took 0.057767 seconds and 5 git commands to generate.