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
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
complit11.C
blob
0662543d941b8659e5c2316a572e6afdb8c037af
1
// { dg-do compile }
2
// { dg-options "" }
3
4
struct A { int i; };
5
6
template<int t>
7
void foo()
8
{
9
((struct A) { 0 }).i += 1; // { dg-error "temporary" }
10
}
11
12
void g(void)
13
{
14
foo<0>();
15
}
16