Commit 3cedc9d8 by Mark Mitchell Committed by Mark Mitchell

re PR c++/10712 (ICE in constructor_name_full, at cp/decl2.c:1255)

	PR c++/1255
	* class.c (handle_using_decl): Robustify.

	PR c++/1255
	* g++.dg/lookup/using3.C: New test.

From-SVN: r68118
parent eaf9f3b2
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.
......
......@@ -1108,6 +1108,9 @@ handle_using_decl (tree using_decl, tree t)
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.
......
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 "" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment