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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
defarg4.C
blob
65ad5821aa310fe6b85d3bcca9381ebf71765809
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin PR c++/39987
3
// { dg-do compile }
4
5
class foo
6
{
7
template<typename U>
8
static bool func(const U& x)
9
{ return true; }
10
public:
11
template<typename U>
12
unsigned int Find(const U& x, bool (*pFunc) (const U&) = func) const
13
{ return 0; }
14
};
15
16
class bar {
17
bool Initialize();
18
protected:
19
foo b;
20
};
21
22
bool bar::Initialize()
23
{
24
b.Find(b);
25
return false;
26
}
27