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
/
constexpr-49776.C
blob
c1d1c375448c647051c4a802c8aada14faa52202
1
// PR c++/49776
2
// { dg-do compile { target c++11 } }
3
4
struct s
5
{
6
int i[1];
7
8
template<class... Types>
9
constexpr s(Types... args)
10
: i{args...} // { dg-error "cannot convert" }
11
{ }
12
};
13
14
int main()
15
{
16
s test = nullptr;
17
}