* class.c (handle_using_decl): Robustify.
PR c++/1255
* g++.dg/lookup/using3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68118
138bc75d-0d04-0410-961f-
82ee72b054a4
2003-06-17 Mark Mitchell <mark@codesourcery.com>
+ PR c++/1255
+ * class.c (handle_using_decl): Robustify.
+
PR c++/11105
* cp-tree.h (DECL_CONV_FN_TYPE): New method.
* mangle.c (struct globals): Remove internal_mangling_p.
tree flist = NULL_TREE;
tree old_value;
+ if (ctype == error_mark_node)
+ return;
+
binfo = lookup_base (t, ctype, ba_any, NULL);
if (! binfo)
{
2003-06-17 Mark Mitchell <mark@codesourcery.com>
+ PR c++/1255
+ * g++.dg/lookup/using7.C: New test.
+
+2003-06-17 Mark Mitchell <mark@codesourcery.com>
+
PR c++/11105
* g++.dg/abi/conv1.C: Remove it.
* g++.dg/template/conv7.C: New test.
--- /dev/null
+template <typename T, bool=T::X> struct A
+{
+ int i;
+};
+
+template <typename T> struct B : A<T>
+{
+ using A<T>::i; // { dg-error "" }
+};
+
+B<void> b; // { dg-error "" }