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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
union5.C
blob
8d2bc98da86aa5248c08a36c2ceb6b7c447a153b
1
// PR c++/49803
2
// { dg-do compile { target c++11 } }
3
// { dg-options "" }
4
5
struct X
6
{
7
X() = delete;
8
};
9
10
union Y
11
{
12
// N3291=11-0061 12.6.2/8 says no initialization of
13
// of other variant members (i.e. m_x) should
14
// be performed.
15
Y() : m_char1{ }
16
{ }
17
18
struct
19
{
20
char m_char1;
21
};
22
23
X m_x;
24
};