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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [access11.C] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
// Copyright (C) 2003 Free Software Foundation
2
// Contributed by Kriang Lerdsuwanakij 
3
// { dg-do compile }
4
 
5
// Access checking during explicit instantiation.
6
 
7
class A {
8
  typedef int X;                // { dg-error "private" }
9
};
10
 
11
class X {
12
  private:
13
  template  struct Y;
14
};
15
 
16
template <> struct X::Y {
17
  A::X x;                       // { dg-error "this context" }
18
};
19
 
20
template  struct X::Y {
21
  typename T::X x;              // { dg-error "this context" }
22
};
23
 
24
template struct X::Y;   // { dg-error "instantiated" }

powered by: WebSVN 2.1.0

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