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
/
lookup8.C
blob
981c283e4dd9a3e0c15fea3f99c7428ab967ebee
1
// PR c++/38030
2
// The call to f should be resolved at template definition time.
3
// { dg-do link }
4
5
struct B { };
6
struct D : public B { };
7
D d;
8
void f (B &) { }
9
template < class T >
10
void g ()
11
{
12
return f (d);
13
}
14
void f (D &);
15
int main ()
16
{
17
g<int> ();
18
return 0;
19
}