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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [friend6.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do compile }
2
 
3
// Origin: Matt Austern 
4
 
5
// PR c++/19258: Wrong lookup scope for friend defined in class.
6
 
7
class X {
8
  template friend int ff(T*, int y=anX.x) { return y; }
9
  int f() { return ff(&anX); }
10
 
11
  static X anX;
12
  int x;
13
};
14
 
15
X dummy;

powered by: WebSVN 2.1.0

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