This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/5645] gcc warns that pure virtual class not explicitly initialized
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Feb 2008 23:11:49 -0000
- Subject: [Bug c++/5645] gcc warns that pure virtual class not explicitly initialized
- References: <bug-5645-2936@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from jason at gcc dot gnu dot org 2008-02-14 23:11 -------
Subject: Bug 5645
Author: jason
Date: Thu Feb 14 23:11:04 2008
New Revision: 132324
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132324
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/warn/pr11159.C
trunk/gcc/testsuite/g++.dg/warn/pr5645.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/init.c
trunk/gcc/testsuite/g++.dg/warn/Wreorder-1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5645