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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ctor7.C
blob
5d18e56435278ed00d511f9d28fc479d03ec53da
1
// PR c++/47199
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-fno-elide-constructors" }
4
5
template < int > struct S
6
{
7
constexpr S (int r):rr (r)
8
{
9
}
10
S (const S &) = default;
11
static constexpr S s ()
12
{
13
return -1;
14
}
15
int rr;
16
};
17
18
static const int d = S < 0 >::s ().rr;