From 58ebb59bef47e4171078422aaa46fb5bce395dfb Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 6 Oct 2017 19:04:25 +0000 Subject: =?UTF-8?q?re=20PR=20c++/66690=20(error:=20use=20of=20=E2=80=98X?= =?UTF-8?q?=E2=80=99=20before=20deduction=20of=20=E2=80=98auto=E2=80=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2017-10-06 Paolo Carlini PR c++/66690 * g++.dg/cpp1y/pr66690.C: New. From-SVN: r253502 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp1y/pr66690.C | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1y/pr66690.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 97825c3..e48f743 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-06 Paolo Carlini + + PR c++/66690 + * g++.dg/cpp1y/pr66690.C: New. + 2017-10-06 Nathan Sidwell PR c++/82424 diff --git a/gcc/testsuite/g++.dg/cpp1y/pr66690.C b/gcc/testsuite/g++.dg/cpp1y/pr66690.C new file mode 100644 index 0000000..3e32aa3 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/pr66690.C @@ -0,0 +1,14 @@ +// PR c++/66690 +// { dg-do compile { target c++14 } } + +template auto foo(T t) {return 3;} +class B {B();}; // { dg-message "declared private" } +template class D:public B +{ + D() // { dg-message "declared private" } + { // { dg-error "is private" } + T x00; + foo(x00); + } +}; +D d; // { dg-error "is private" } -- cgit v1.1