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
/
initlist107.C
blob
9acfe7cb267cef2b8ad6f8c058d8562fe8e8a9f9
1
// PR c++/89083
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wmissing-braces" }
4
5
struct A { int x[3]; };
6
7
template<class T>
8
decltype(A{1, 2}, T()) fn1(T t) // { dg-warning "missing braces" }
9
{
10
return t;
11
}
12
13
template<class T>
14
decltype(A{{1, 2}}, T()) fn2(T t)
15
{
16
return t;
17
}
18
19
void
20
f()
21
{
22
fn1(1);
23
fn2(1);
24
}