2 // { dg-do compile { target c++14 } }
4 template<class T> auto foo(T t) {return 3;}
5 class B {B();}; // { dg-message "declared private" }
6 template<class T> class D:public B
8 D() // { dg-message "declared private" }
9 { // { dg-error "is private" }
14 D<int> d; // { dg-error "is private" }