| 1 |
// { dg-do assemble } |
| 2 |
|
| 3 |
// Copyright (C) 2001 Free Software Foundation, Inc. |
| 4 |
// Contributed by Nathan Sidwell 5 Jun 2001 <[email protected]> |
| 5 |
|
| 6 |
// Bug 2929. We were forgetting about template parm scope when |
| 7 |
// injecting a friend decl into a class template specialization's |
| 8 |
// containing scope. |
| 9 |
|
| 10 |
template <class Type> class Vec; |
| 11 |
|
| 12 |
template <> class Vec<double> |
| 13 |
{ |
| 14 |
public: |
| 15 |
Vec (); |
| 16 |
Vec<double> & Fn (double); |
| 17 |
friend Vec<double> Fn (const Vec<double> &, double); |
| 18 |
}; // pop_binding ICE |
| 19 |
|
| 20 |
template <class _Tp> class Alloc |
| 21 |
{ |
| 22 |
template <class _Tp1> struct Rebind |
| 23 |
{ |
| 24 |
typedef Alloc<_Tp1> other; |
| 25 |
}; |
| 26 |
}; |