blob: c4ceebed71ef57e979c1ae91a5f7b3c9be210cc7 [file] [log] [blame]
// PR c++/40639
// { dg-options "-std=c++0x" }
template< typename T >
struct wrap {
enum E : T { val };
};
template< typename T >
struct dependant {
enum E : typename T::type { val };
};
template<typename T>
struct identity {
typedef T type;
};
wrap<int> x;
dependant<identity<int>> y;