2 // Origin: Mark Anders <mark dot a dot anders at intel dot com>
3 // PR c++/15503: disambiguators in base classes and mem-initializers
5 template <typename K1> struct O {
6 template <typename K2> struct I {};
10 struct A : typename O<T>::template I<int> { // { dg-error "keyword 'typename' not allowed" }
11 A() : typename O<T>::template I<int>() // { dg-error "keyword 'typename' not allowed" }
16 struct B : O<T>::template I<int> {
17 B() : O<T>::I<int>() // { dg-error "used as template|it is a template" "" }
21 // { dg-bogus "end of input" "bogus token skipping in the parser" { xfail *-*-* } 17 }