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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic74.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile { target c++11 } }
2
template  class A
3
{
4
public:
5
  template  class X { /* ... */ }; // { dg-error "not a valid type for a template non-type parameter" }
6
};
7
 
8
template class B
9
{
10
public:
11
  template  class X {
12
    typename A::template X foo;
13
  };
14
};
15
 
16
int i;
17
float f;
18
 
19
A::X<&i, &f> apple1;
20
B::X<&i, &f> banana1;
21
 
22
A::X<&i> apple2; // { dg-error "wrong number of template arguments" }
23
// { dg-error "invalid type" "" { target *-*-* } 22 }
24
A::X<&i, &f, &f> apple3; // { dg-error "wrong number of template arguments" }
25
// { dg-error "invalid type" "" { target *-*-* } 24 }
26
A apple4;

powered by: WebSVN 2.1.0

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