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
/
constexpr-union7.C
blob
b3147d9db50281254ede298b76f2fb3c71a6897e
1
// PR c++/105491
2
// { dg-do compile { target c++11 } }
3
4
struct V {
5
int m = 0;
6
};
7
struct S : V {
8
constexpr S(int) : b() { }
9
bool b;
10
};
11
struct W {
12
constexpr W() : s(0) { }
13
union {
14
S s;
15
};
16
};
17
constexpr W w;