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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array18.C
blob
0f2d86e77d837e69562a748f0c39db3ec42b9e92
1
// PR c++/71166
2
// { dg-do compile { target c++11 } }
3
4
struct Foo { int value; };
5
6
constexpr Foo MakeFoo() { return Foo{0}; }
7
8
struct Bar {
9
Foo color = MakeFoo();
10
};
11
12
struct BarContainer {
13
Bar array[1];
14
};
15
16
Foo X ()
17
{
18
return MakeFoo ();
19
}
20
21
void Foo() {
22
new BarContainer();
23
}