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/] [access5.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
// { dg-do compile }
2
// Origin: Wolfgang Bangerth 
3
 
4
// PR c++/7348
5
// Access control for typename in function return type
6
 
7
class Outer {
8
    template  struct Inner {
9
        typedef int T;
10
        T foo ();
11
    };
12
  public:
13
    Outer();
14
};
15
 
16
template 
17
typename Outer::Inner::T  Outer::Inner::foo () {
18
  return 1;
19
}
20
 
21
template struct Outer::Inner<2>;

powered by: WebSVN 2.1.0

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