diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fd0e88579c9c..77d24a14e802 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 000000000000..42153252b89d --- /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{}; +}