repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-recursion2.C
blob
ce2280c856fe34fd46744c7b249cf356e5ac61d8
1
// PR c++/70344
2
// { dg-do compile { target c++11 } }
3
// { dg-options -O }
4
5
struct Z
6
{
7
Z () = default;
8
Z (Z const &) = default;
9
constexpr Z (Z &&) {}
10
};
11
12
constexpr int
13
fn (Z v)
14
{
15
return fn (v);
16
}
17
18
auto t = fn (Z ());