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
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ctor7.C
1
// PR c++/47199
2
// { dg-options "-std=c++0x -fno-elide-constructors" }
3
4
template < int > struct S
5
{
6
constexpr S (int r):rr (r)
7
{
8
}
9
S (const S &) = default;
10
static constexpr S s ()
11
{
12
return -1;
13
}
14
int rr;
15
};
16
17
static const int d = S < 0 >::s ().rr;