OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [defarg4.C] - Blame information for rev 705

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 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.