diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2014-04-10 14:06:36 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2014-04-10 14:06:36 +0000 |
commit | 87c66338d77671f0c562febddb15eb6890ea196f (patch) | |
tree | 16fc1cc7fb68c66e5968fb83e47d927e51371946 /gcc | |
parent | 0e2f1313f1abae04fa493bbc6f47a8c4856997fe (diff) | |
download | gcc-87c66338d77671f0c562febddb15eb6890ea196f.zip gcc-87c66338d77671f0c562febddb15eb6890ea196f.tar.gz gcc-87c66338d77671f0c562febddb15eb6890ea196f.tar.bz2 |
re PR c++/52844 (ICE)
2014-04-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52844
* g++.dg/cpp0x/variadic156.C: New.
From-SVN: r209276
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic156.C | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fac1cec..7cab549 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-04-10 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/52844 + * g++.dg/cpp0x/variadic156.C: New. + 2014-04-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * 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 0000000..7d3c97d --- /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" } |