diff options
author | Jason Merrill <jason@redhat.com> | 2012-04-16 22:29:51 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2012-04-16 22:29:51 -0400 |
commit | 1561ad74c15ddf9c3d24e826ff280f5fa1d00ae2 (patch) | |
tree | 4990fd45ccbd69512a85642e2703881236066217 /gcc/testsuite | |
parent | 54aa834f49ab0e8855400d7d9ed513bf666ecb24 (diff) | |
download | gcc-1561ad74c15ddf9c3d24e826ff280f5fa1d00ae2.zip gcc-1561ad74c15ddf9c3d24e826ff280f5fa1d00ae2.tar.gz gcc-1561ad74c15ddf9c3d24e826ff280f5fa1d00ae2.tar.bz2 |
re PR c++/38543 ([C++0x] Cannot specialize variadic template function)
PR c++/38543
* pt.c (determine_specialization): Instead of comparing the number
of parms, check that tsubst gives the right answer.
From-SVN: r186522
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic131.C | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2acdffe..0b6fcf5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2012-04-16 Jason Merrill <jason@redhat.com> + PR c++/38543 + * g++.dg/cpp0x/variadic131.C: New. + PR c++/52008 * g++.dg/cpp0x/variadic130.C: New. diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic131.C b/gcc/testsuite/g++.dg/cpp0x/variadic131.C new file mode 100644 index 0000000..3006f87 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic131.C @@ -0,0 +1,11 @@ +// PR c++/38543 +// { dg-do compile { target c++11 } } + +template< typename ... T > void foo( T ... args ); +template<> void foo( ){} +template<> void foo(int,double){} +int main() +{ + foo( 0, 0.0 ); + return 55; +} |