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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-nsdmi3.C
blob
ec1c4e533877ee42b33e7639c0e626952b05bd66
1
// PR c++/101073
2
// { dg-do compile { target c++11 } }
3
// { dg-additional-options "-fno-elide-constructors" }
4
5
struct Y
6
{
7
int a;
8
};
9
10
struct X
11
{
12
Y b = Y{1};
13
Y c = this->b;
14
};
15
16
constexpr X o = { };
17
static_assert(o.b.a == 1 && o.c.a == 1, "");