Commit db2acc36 by Jakub Jelinek Committed by Jakub Jelinek

search.c (lookup_conversions_r): Fix a pasto.

	* search.c (lookup_conversions_r): Fix a pasto.

	* g++.dg/parse/lookup5.C: New test.

From-SVN: r109877
parent 9d757cde
2006-01-18 Jakub Jelinek <jakub@redhat.com>
* search.c (lookup_conversions_r): Fix a pasto.
2006-01-17 Eric Christopher <echristo@apple.com>
* call.c (convert_like_real): When issuing conversion
......
......@@ -2355,7 +2355,7 @@ lookup_conversions_r (tree binfo,
{
parent_tpl_convs = tree_cons (binfo, my_tpl_convs, parent_tpl_convs);
if (virtual_depth)
TREE_STATIC (parent_convs) = 1;
TREE_STATIC (parent_tpl_convs) = 1;
}
child_convs = other_convs;
......
2006-01-18 Jakub Jelinek <jakub@redhat.com>
* g++.dg/parse/lookup5.C: New test.
2006-01-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/25697
// { dg-do compile }
struct A {};
template <class T> struct B
{
T a, b;
B() {}
B(T x, T y) : a(x), b(y) {}
template <class U> operator B<U> () const
{ return B<U>((U)(this->a), (U)(this->b)); }
};
template <class T> struct C : public B<int>
{
T *c;
inline T & operator *() { return *c; }
};
template <class T> struct D : virtual public C<T> { };
void
foo (D<A> x)
{
*x;
}
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