OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [overload/] [defarg4.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Contributed by Dodji Seketeli 
2
// Origin PR c++/39987
3
// { dg-do "compile" }
4
 
5
class foo
6
{
7
 template
8
 static bool func(const U& x)
9
 {}
10
public:
11
 template
12
 unsigned int Find(const U& x, bool (*pFunc) (const U&) = func) const
13
 {}
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
}
26
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.