blob: f896440fe1ecfdaae1d47ecba923a745ad870e31 [file] [log] [blame]
// PR c++/40639
// { dg-do compile { target c++11 } }
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;