From: Paolo Carlini Date: Wed, 18 Mar 2015 21:30:04 +0000 (+0000) Subject: re PR c++/59816 ([c++11] Incorrect visibility check in template instantiation when... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a533f6978db5b191f4e46da2f8d7d5523f0dc195;p=gcc.git 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 PR c++/59816 * g++.dg/cpp0x/pr59816.C: New. From-SVN: r221502 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fd0e88579c9..77d24a14e80 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,9 @@ -2014-03-18 Paul Thomas +2015-03-18 Paolo Carlini + + PR c++/59816 + * g++.dg/cpp0x/pr59816.C: New. + +2015-03-18 Paul Thomas 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 +2015-03-17 Paul Thomas 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 00000000000..42153252b89 --- /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 + Base(TArgs...) {} +}; + +class Class + : public Base { +public: + template + Class(TArgs... args) : Base { args... } {} +}; + +void test() { + Class{}; +}