From: Paolo Carlini Date: Thu, 10 Apr 2014 14:06:36 +0000 (+0000) Subject: re PR c++/52844 (ICE) X-Git-Tag: basepoints/gcc-5~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87c66338d77671f0c562febddb15eb6890ea196f;p=thirdparty%2Fgcc.git re PR c++/52844 (ICE) 2014-04-10 Paolo Carlini PR c++/52844 * g++.dg/cpp0x/variadic156.C: New. From-SVN: r209276 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fac1cecb8f75..7cab549663f3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-04-10 Paolo Carlini + + PR c++/52844 + * g++.dg/cpp0x/variadic156.C: New. + 2014-04-10 Andreas Krebbel * gcc.target/s390/htm-builtins-compile-1.c: Replace long long with diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic156.C b/gcc/testsuite/g++.dg/cpp0x/variadic156.C new file mode 100644 index 000000000000..7d3c97d6890b --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic156.C @@ -0,0 +1,6 @@ +// PR c++/52844 +// { dg-do compile { target c++11 } } + +template < class > struct V { }; +template < int...Is > void f ( V < Is...>) { } // { dg-error "mismatch|type" } +auto g ( ) -> decltype ( f ( V < long > ( ) ) ) ; // { dg-error "matching" }