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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
dr2351.C
blob
5116dfe104ecb4b56e72b18ea725678eb0ca6482
1
// DR2351
2
// { dg-do compile { target c++11 } }
3
4
void
5
foo ()
6
{
7
void{};
8
void();
9
}
10
11
template <class ...T>
12
void
13
bar (T... t)
14
{
15
void{t...};
16
void(t...);
17
}
18
19
void
20
baz ()
21
{
22
bar ();
23
}
24
25
template <class ...T>
26
void
27
qux (T... t)
28
{
29
void{t...}; // { dg-error "compound literal of non-object type" }
30
}
31
32
void
33
corge ()
34
{
35
qux (1, 2);
36
}
37
38
template <class ...T>
39
void
40
garply (T... t)
41
{
42
void{t..., t..., t...};
43
void(t..., t..., t...);
44
}
45
46
template <class ...T>
47
void
48
grault (T... t)
49
{
50
void{t..., 1}; // { dg-error "compound literal of non-object type" }
51
}