diff options
author | Paolo Carlini <paolo@gcc.gnu.org> | 2015-03-18 21:30:04 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2015-03-18 21:30:04 +0000 |
commit | a533f6978db5b191f4e46da2f8d7d5523f0dc195 (patch) | |
tree | 5f6117d6fab9becfa173c3eb47ccb9d7573fb6f0 | |
parent | 91e11b2345d2792a5b16468f351e2158eb9b74a6 (diff) | |
download | gcc-a533f6978db5b191f4e46da2f8d7d5523f0dc195.zip gcc-a533f6978db5b191f4e46da2f8d7d5523f0dc195.tar.gz gcc-a533f6978db5b191f4e46da2f8d7d5523f0dc195.tar.bz2 |
re PR c++/59816 ([c++11] Incorrect visibility check in template instantiation when the default constructor is a variadic template.)
2015-03-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59816
* g++.dg/cpp0x/pr59816.C: New.
From-SVN: r221502
-rw-r--r-- | gcc/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/pr59816.C | 19 |
2 files changed, 26 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fd0e885..77d24a1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..4215325 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr59816.C @@ -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{}; +} |