// { 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() {} };