repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist12.C
blob
c2a2b86520f9f4533729c2cc524de679cfd8bcf2
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|cannot convert" }
10
11
union U
12
{
13
int i,j;
14
};
15
16
U u({1,2}); // { dg-error "no match|cannot convert" }
17
18
union V {};
19
20
V v({1}); // { dg-error "no match|too many initializers" }