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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-55432.C
blob
56b09bda0172d0b594764761189228a7ce3c8dbe
1
// PR c++/55432
2
// { dg-do compile { target c++11 } }
3
4
struct tag_t{} tag{};
5
6
constexpr tag_t const& pass(tag_t & t)
7
{
8
return t;
9
}
10
11
struct S
12
{
13
constexpr S(tag_t) {};
14
};
15
16
struct T
17
{
18
S mem;
19
T( tag_t & args ) : mem(pass(args)) {}
20
};
21
22
T t(tag);