repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove outermost loop parameter.
[official-gcc/graphite-test-results.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