From 28bbd27a09dc1c4cc88f24ac1088c9e8472d0f5b Mon Sep 17 00:00:00 2001 From: mmitchel Date: Tue, 9 Mar 2004 08:16:49 +0000 Subject: PR c++/14401 * class.c (check_field_decls): Complain about non-static data members of reference type in unions. Propagate CLASSTYPE_REF_FIELDS_NEED_INIT and CLASSTYPE_READONLY_FIELDS_NEED_INIT from the types of non-static data members. * init.c (perform_member_init): Complain about mbmers with const type that are not explicitly initialized. PR c++/14401 * g++.dg/init/ctor3.C: New test. * g++.dg/init/union1.C: New test. * g++.dg/ext/anon-struct4.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79158 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ptree.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'gcc/cp/ptree.c') diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 7979504e3fd..4858b869c3d 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -157,8 +157,6 @@ cxx_print_identifier (FILE *file, tree node, int indent) cxx_print_binding (file, IDENTIFIER_BINDING (node), "local bindings"); print_node (file, "label", IDENTIFIER_LABEL_VALUE (node), indent + 4); print_node (file, "template", IDENTIFIER_TEMPLATE (node), indent + 4); - print_node (file, "implicit", IDENTIFIER_IMPLICIT_DECL (node), indent + 4); - print_node (file, "error locus", IDENTIFIER_ERROR_LOCUS (node), indent + 4); } void -- cgit v1.2.1