blob: 21f1ac04fbe59aecd22bebd9d31ae56a081fad3c [file] [log] [blame]
// PR c++/50080
template <typename T>
struct A
{
template <typename U>
struct B {};
};
template <typename T>
void test()
{
typename A<T>::template B<int> b;
}
int main()
{
typename A<double>::template B<int> b; // { dg-error "template|expected" "" { target { ! c++11 } } }
}