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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/33496
2
// { dg-do compile }
3
// { dg-options "-std=gnu++0x" }
4
 
5
template struct pair
6
{
7
  int i, j;
8
  pair () : i (M), j (N) {}
9
};
10
 
11
template struct S
12
{
13
  template static int *foo ()
14
  {
15
    static int x[] = { (M + N)... };    // { dg-error "mismatched argument pack lengths" }
16
    return x;
17
  }
18
};
19
 
20
int *bar ()
21
{
22
  return S<0, 1, 2>::foo<0, 1> ();
23
}

powered by: WebSVN 2.1.0

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