OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [friend49.C] - Blame information for rev 699

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.