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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [qualttp22.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// { 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.