+2006-01-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ Backport:
+ 2005-12-19 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/24278
+ * init.c (expand_member_init): Print messages about baseclasses
+ using %T rather than %D.
+
2006-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/16829
if (!direct_binfo && !virtual_binfo)
{
if (TYPE_USES_VIRTUAL_BASECLASSES (current_class_type))
- error ("type `%D' is not a direct or virtual base of `%T'",
- name, current_class_type);
+ error ("type `%T' is not a direct or virtual base of `%T'",
+ basetype, current_class_type);
else
- error ("type `%D' is not a direct base of `%T'",
- name, current_class_type);
+ error ("type `%T' is not a direct base of `%T'",
+ basetype, current_class_type);
return NULL_TREE;
}
+2006-01-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ Backport:
+ 2005-12-19 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/24278
+ * g++.dg/template/ctor5.C: New test.
+
2006-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/16829
--- /dev/null
+// PR c++/24278
+
+template<typename T> struct A
+{
+ A() : T(0) {} // { dg-error "base" }
+};
+
+A<int*> a; // { dg-error "instantiated" }