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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [ttp9.C] - Diff between revs 154 and 816

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;
 
 

powered by: WebSVN 2.1.0

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