1// { dg-do assemble } 2 3// Copyright (C) 2001 Free Software Foundation, Inc. 4// Contributed by Nathan Sidwell 5 Jun 2001 <nathan@codesourcery.com> 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 10template <class Type> class Vec; 11 12template <> class Vec<double> 13{ 14public: 15 Vec (); 16 Vec<double> & Fn (double); 17 friend Vec<double> Fn (const Vec<double> &, double); 18}; // pop_binding ICE 19 20template <class _Tp> class Alloc 21{ 22 template <class _Tp1> struct Rebind 23 { 24 typedef Alloc<_Tp1> other; 25 }; 26}; 27