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
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-51707.C
blob
ae02a31c540b1a5ca42faae93ea581c38c956a7a
1
// PR c++/51707
2
// { dg-do compile { target c++11 } }
3
4
struct S {
5
constexpr S() {}
6
};
7
8
struct T {
9
constexpr T(S const& s) : s{s} {}
10
S const& s;
11
};
12
13
constexpr S s {};
14
constexpr T t { s };