re PR c++/59816 ([c++11] Incorrect visibility check in template instantiation when...
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 18 Mar 2015 21:30:04 +0000 (21:30 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 18 Mar 2015 21:30:04 +0000 (21:30 +0000)
2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59816
* g++.dg/cpp0x/pr59816.C: New.

From-SVN: r221502

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr59816.C [new file with mode: 0644]

index fd0e88579c9cd51d581bca06bbac07356dce4d78..77d24a14e8022a9793436471833d237c89c6652d 100644 (file)
@@ -1,4 +1,9 @@
-2014-03-18  Paul Thomas  <pault@gcc.gnu.org>
+2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/59816
+       * g++.dg/cpp0x/pr59816.C: New.
+
+2015-03-18  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/59198
        * gfortran.dg/proc_ptr_comp_45.f90 : Make tests fuzzy.
@@ -47,7 +52,7 @@
        PR fortran/64432
        * gfortran.dg/system_clock_3.f08: Adjust test.
 
-2014-03-17  Paul Thomas  <pault@gcc.gnu.org>
+2015-03-17  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/59198
        * gfortran.dg/proc_ptr_comp_44.f90 : New test
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr59816.C b/gcc/testsuite/g++.dg/cpp0x/pr59816.C
new file mode 100644 (file)
index 0000000..4215325
--- /dev/null
@@ -0,0 +1,19 @@
+// PR c++/59816
+// { dg-do compile { target c++11 } }
+
+class Base {
+protected:
+  template<class... TArgs>
+  Base(TArgs...) {}
+};
+
+class Class
+  : public Base {
+public:
+  template<class... TArgs>
+  Class(TArgs... args) : Base { args... } {}
+};
+
+void test() {
+  Class{};
+}