URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Origin: David Abrahams
|
// Origin: David Abrahams
|
// Wolfgang Bangerth
|
// Wolfgang Bangerth
|
|
|
// PR c++/12170: Deducing template template parameter from nested
|
// PR c++/12170: Deducing template template parameter from nested
|
// class template.
|
// class template.
|
|
|
template struct W {};
|
template struct W {};
|
|
|
template< template class F, typename T>
|
template< template class F, typename T>
|
int foo(W< F >);
|
int foo(W< F >);
|
|
|
|
|
template
|
template
|
struct L {
|
struct L {
|
static int const value = sizeof(foo(W()));
|
static int const value = sizeof(foo(W()));
|
typedef T type;
|
typedef T type;
|
};
|
};
|
|
|
|
|
template
|
template
|
struct Y {
|
struct Y {
|
template struct X { typedef int type; };
|
template struct X { typedef int type; };
|
typedef typename L >::type type;
|
typedef typename L >::type type;
|
};
|
};
|
|
|
template struct Y;
|
template struct Y;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.