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
This commit is contained in:
parent
eaf9f3b2e9
commit
3cedc9d8ec
|
@ -1,5 +1,8 @@
|
|||
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)
|
||||
{
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
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 "" }
|
Loading…
Reference in New Issue