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
/
cpp0x
/
auto34.C
blob
3682d60bf4bc465c76f9a37bd4016b6c4ebbf115
1
// PR c++/51421
2
// { dg-do compile { target c++11 } }
3
4
int foo1(int);
5
6
void bar1()
7
{
8
auto i = foo1(i); // { dg-error "before deduction" }
9
}
10
11
struct A {};
12
13
A foo2(A);
14
15
void bar2()
16
{
17
auto a = foo2(a); // { dg-error "before deduction" }
18
}