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
Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
error2.C
blob
e6af294c1803b40a05fbbc9acf44264af8d496c5
1
// PR c++/38656
2
// { dg-do compile { target c++11 } }
3
4
template<int> int foo();
5
6
template<typename F> void bar(F f)
7
{
8
f((foo<0>()=0)...); // { dg-error "pattern '\\(foo\\<0\\>\\)\\(\\)=0'" }
9
}