repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
overload5a.C
blob
037114f199c6954cf9f45515537bbf9d1a32ad3d
1
// PR c++/107461
2
// { dg-do compile { target c++11 } }
3
4
template<class T> T f();
5
template<class T> decltype(T() + f<int*>()) g(); // #1
6
template<class T> decltype(T() + f<char>()) g(); // #2, distinct from #1
7
8
int main() {
9
g<int>(); // { dg-error "ambiguous" }
10
}