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/] [template/] [access9.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// Copyright (C) 2003 Free Software Foundation
2
// Contributed by Kriang Lerdsuwanakij 
3
// { dg-do compile }
4
 
5
// Template instantiate during deferred access check
6
 
7
template  struct C {
8
  typedef int Y;
9
};
10
 
11
template  void f(typename T::X) {
12
}
13
 
14
class A {
15
  typedef int X;
16
  template  friend void f(typename T::X);
17
};
18
 
19
C<&f >::Y g(int);

powered by: WebSVN 2.1.0

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