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++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
cast3.C
blob
b343ee427b32e3740504c79e9563158541a429fb
1
// PR c++/56438
2
3
struct A { };
4
A& operator<<(A&, const char*);
5
6
struct B {
7
int size();
8
};
9
10
struct C { };
11
12
template <class S, class T>
13
S bar(const S& s, const T& t) {
14
return s;
15
}
16
17
template<class S, class T>
18
void foo() {
19
A a;
20
B b;
21
a << bar(b.size(), C()); // { dg-error "no match" }
22
}