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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [friend19.C] - Blame information for rev 832

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Benjamin Li 
4
 
5
// PR c++/11030: Template substitution of friend class that is
6
// a specialization.
7
 
8
template 
9
struct A
10
{
11
  void func(void);
12
};
13
 
14
template 
15
class C
16
{
17
  static void private_func(void) {}
18
public:
19
  friend class A<512>;
20
};
21
 
22
template 
23
void A::func(void)
24
{
25
  C::private_func();
26
}
27
 
28
template class A<512>;

powered by: WebSVN 2.1.0

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