// PR c++/116323 // { dg-do "compile" } // { dg-additional-options "-Wno-template-body" } class A { enum Enum{}; }; template class Alloc> class B : private Alloc, private A {}; template class Alloc> int B::foo (Enum m) { return 42; } // { dg-error "is private" }