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/] [template/] [typename5.C] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// Origin: ariels@compugen.co.il
// PR c++/2513: typename handling when scope is dependent as
// described in DR108.
template <bool flag> struct Select {
typedef int Result;
};
template <template<class> class Pred> struct FindType {
typedef typename Select<true>::Result Result;
};
template <int bits> struct Int {
template<typename T> struct RightSize {};
typedef typename FindType<RightSize>::Result type;
};
Go to most recent revision | Compare with Previous | Blame | View Log