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
/
initlist12.C
blob
f72a6dac5255502c0d0c51aa44040189b8e1c406
1
// PR c++/38698
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
int i;
7
};
8
9
A a({1,2}); // { dg-error "no match" }
10
11
union U
12
{
13
int i,j;
14
};
15
16
U u({1,2}); // { dg-error "no match" }
17
18
union V {};
19
20
V v({1}); // { dg-error "no match" }