blob: c0843efdf9d0cbaec119b672d41006dbc503878b [file] [log] [blame]
// PR c++/95508
// { dg-do compile }
template <typename>
struct A;
template <typename>
struct B {
operator int () { return 0; }
};
template <>
struct A<unsigned> : B<int> {};
struct D {
template <typename>
int foo () { return e[f]; }
int e[6];
A<unsigned> f;
};