Commit 75531228 by Dodji Seketeli

re PR c++/39987 (Rejects default argument that is a template via access failure)

2009-08-07  Dodji Seketeli  <dodji@redhat.com>

	PR c++/39987
	* gcc/testsuite/g++.dg/overload/defarg4.C: Oops, forgot to add
	the testcase.

From-SVN: r150568
parent ac517fcb
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin PR c++/39987
// { dg-do "compile" }
class foo
{
template<typename U>
static bool func(const U& x)
{}
public:
template<typename U>
unsigned int Find(const U& x, bool (*pFunc) (const U&) = func) const
{}
};
class bar {
bool Initialize();
protected:
foo b;
};
bool bar::Initialize()
{
b.Find(b);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment