2017-10-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/66690
* g++.dg/cpp1y/pr66690.C: New.
From-SVN: r253502
+2017-10-06 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/66690
+ * g++.dg/cpp1y/pr66690.C: New.
+
2017-10-06 Nathan Sidwell <nathan@acm.org>
PR c++/82424
--- /dev/null
+// PR c++/66690
+// { dg-do compile { target c++14 } }
+
+template<class T> auto foo(T t) {return 3;}
+class B {B();}; // { dg-message "declared private" }
+template<class T> class D:public B
+{
+ D() // { dg-message "declared private" }
+ { // { dg-error "is private" }
+ T x00;
+ foo(x00);
+ }
+};
+D<int> d; // { dg-error "is private" }