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/] [friend46.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
3
// Contributed by Nathan Sidwell 17 Nov 2000 
4
 
5
// bug 43. Two failings, bison parser ickiness caused us to find the member
6
// named the same as a friend, and then when instantiating, we'd lookup in
7
// the wrong scope.
8
 
9
namespace X {
10
  template  class P;
11
 
12
  template  void operator- (const P&);
13
 
14
  template 
15
  struct V
16
  {
17
    V (const T&);
18
 
19
    void operator- ();
20
    friend void X::operator-<> (const P& a);
21
  };
22
}
23
 
24
int main()
25
{
26
  X::V b(1.0);
27
 
28
  return 0;
29
}

powered by: WebSVN 2.1.0

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