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/] [qualttp22.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: Philippe Van Deyck 
4
 
5
// PR c++/13520: Default template template argument that is a qualified id
6
// with dependent scope.
7
 
8
template class Policy {};
9
 
10
template  class OriginalPolicy>
11
class ChangedPolicy_impl {};
12
 
13
template  class OriginalPolicy > class ChangedPolicy {
14
public:
15
  template class Type : public
16
  ChangedPolicy_impl { };
17
};
18
 
19
template  class Policy1,
20
          template class Policy2
21
            = ChangedPolicy::template Type>
22
class Host : public Policy1, public Policy2 { };
23
 
24
int main()
25
{
26
  Host h;
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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