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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
stmtexpr2.C
blob
ef29b43c59f9f59468d152c100ebeaef743013f3
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin: PR c++/36408
3
// { dg-options "" }
4
// { dg-do compile }
5
6
template<int>
7
void
8
foo()
9
{
10
int i = ({ }); // { dg-error "void value not ignored" }
11
}
12
13
template<int>
14
void
15
bar()
16
{
17
int i = ({ ({}); }); // { dg-error "void value not ignored" }
18
}
19
20
int
21
main ()
22
{
23
foo<0> ();
24
bar<0> ();
25
}
26