// { dg-do compile } // Origin: Mark Anders // PR c++/15503: disambiguators in base classes and mem-initializers template struct O { template struct I {}; }; template struct A : typename O::template I { // { dg-error "keyword 'typename' not allowed" } A() : typename O::template I() // { dg-error "keyword 'typename' not allowed" } {} }; template struct B : O::template I { B() : O::I() // { dg-error "used as template|it is a template" "" } {} }; // { dg-bogus "end of input" "bogus token skipping in the parser" { xfail *-*-* } 17 }