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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
overload6.C
blob
1fbee0501de9f7f083142f299d82f7d694ab0c42
1
// PR c++/107461
2
// { dg-do compile { target c++11 } }
3
4
template<class T> T f();
5
6
template<class> struct A { };
7
8
template<class T> struct B {
9
template<class U, class = A<decltype(f<T>()(U()))>>
10
static void g(U);
11
};
12
13
int main() {
14
B<int> b;
15
B<void(*)(int)>::g(0); // { dg-bogus "no match" }
16
}