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
/
initlist64.C
blob
78e53085987c48366bda1f94bbd2bafa8b451503
1
// PR c++/51553
2
// { dg-do compile { target c++11 } }
3
4
struct X
5
{
6
X();
7
};
8
9
struct Y
10
{
11
operator X() const;
12
};
13
14
struct Z
15
{
16
explicit operator X() const;
17
};
18
19
X a = { Y() };
20
X aa = Y();
21
22
X b{ Y() };
23
X bb(Y());
24
25
X c = { Z() }; // { dg-error "" }
26
X cc = Z(); // { dg-error "" }
27
28
X d{ Z() };
29
X dd( Z() );