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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Steven Bosscher 
4
//         Serge Belyshev 
5
 
6
// PR c++/18825: ICE member as friend
7
 
8
template class A
9
{
10
  void f ();                    // { dg-error "private" }
11
};
12
 
13
template class B
14
{
15
  friend void A::f ();  // { dg-error "this context" }
16
};
17
 
18
int f ()
19
{
20
  B b;                  // { dg-error "instantiated" }
21
}

powered by: WebSVN 2.1.0

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