OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2012-12-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array4.C
1
// PR c++/49924
2
// { dg-options -std=c++0x }
3
4
struct A { constexpr A() { } };
5
6
struct B {
7
A array[1]; //non-static member array of a literal type w constexpr ctor
8
constexpr B() : array{} { } // here is the problem
9
};
10
11
int main()
12
{
13
constexpr B b{}; // won't compile
14
}