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-1.C
blob
1c686295766ad87af949b8933edc2f2b49d14758
1
// PR c++/71450
2
// { dg-do compile { target c++11 } }
3
4
struct A { A operator+ (A a) { return a; } };
5
6
template <class T>
7
void foo (T t)
8
{
9
auto x = t + x; // { dg-error "use of 'x' before deduction of 'auto'" }
10
}
11
12
int
13
main ()
14
{
15
foo (A ());
16
}