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.0rc3/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [pr39639.C] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++/39639
// { dg-options "-std=c++0x" }
// { dg-do "compile" }
template <class... Types>
struct S
: S<...Types>, // { dg-error "expected parameter pack before '...'" }
S<...Types...>, // { dg-error "expected parameter pack before '...'" }
S<...> // { dg-error "expected parameter pack before '...'" }
{
static int f () { return 1;}
};
int
main ()
{
return S<void>::f ();
}
Go to most recent revision | Compare with Previous | Blame | View Log