cp:
PR c++/17681
* error.c (dump_type): Change TREE_VEC case into TREE_BINFO.
testsuite:
PR c++/17681
* g++.dg/other/error9.C: New test.
From-SVN: r88170
2004-09-27 Nathan Sidwell <nathan@codesourcery.com>
+ PR c++/17681
+ * error.c (dump_type): Change TREE_VEC case into TREE_BINFO.
+
* class.c (struct count_depth_data): Remove.
(dfs_depth_post, dfs_depth_q): Remove.
(find_final_overrider): Use number of vbase classes as depth
pp_cxx_tree_identifier (cxx_pp, t);
break;
- case TREE_VEC:
+ case TREE_BINFO:
dump_type (BINFO_TYPE (t), flags);
break;
+2004-09-27 Nathan Sidwell <nathan@codesourcery.com>
+
+ PR c++/17681
+ * g++.dg/other/error9.C: New test.
+
2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
* gcc.dg/tree-ssa/loop-1.c: Use -msmall-exec on s390-*-* targets.
--- /dev/null
+// { dg-options -Wall }
+
+// Copyright (C) 2004 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 27 Sept 2004 <nathan@codesourcery.com>
+
+// Origin: v.haisman@sh.cvut.cz
+// Bug 17681: bad diagnostic text.
+
+struct A
+{ };
+
+struct B
+{ };
+
+struct C : public B, public A
+{
+ C () // { dg-warning "when initialized" "" }
+ : A(), B() // { dg-warning "base .\[AB\]." "" }
+ { }
+};