// { dg-do assemble } // by Alexandre Oliva // Based on a testcase by Reid M. Pinchback // According to the C++ Standard [temp.expl.spec]/17-18, explicit // specializations are only valid if all enclosing template classes // of the specialized template are fully specialized too template class bug { template class a {}; }; template template <> // { dg-error "" } invalid specialization class bug::a {}; // { dg-error "" }