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++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr71450-2.C
blob
1a7376c85b891b1291a4c5fe8f7b3961b6baea06
1
// PR c++/71450
2
// { dg-do compile { target c++11 } }
3
4
template <class T>
5
void foo (T t)
6
{
7
auto x = t + x; // { dg-error "use of 'x' before deduction of 'auto'" }
8
}
9
10
int
11
main ()
12
{
13
foo (1);
14
}