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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic74.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "-std=gnu++0x" }
2
template  class A
3
{
4
public:
5
  template  class X { /* ... */ }; // { dg-error "not a valid type for a template constant 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.