repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr31442.C
blob
b4c737c603c86b4fb7cc716be72015fe757aa8b1
1
// { dg-do compile { target c++11 } }
2
template<typename... T, T = 0> struct A {}; // { dg-error "parameter packs|T|the end|parameter packs|anonymous" }
3
4
struct B
5
{
6
template <template <typename...> class C> B(C<int>);
7
};
8
9
B b = A<int>();