Commit 87a52ec1 by Paolo Carlini Committed by Paolo Carlini

re PR c++/53403 (Function template friend denied access to private types of…

re PR c++/53403 (Function template friend denied access to private types of granting template class.)

2012-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53403
	* g++.dg/template/friend53.C

From-SVN: r192108
parent 693445c9
2012-10-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53403
* g++.dg/template/friend53.C
2012-10-04 Eric Botcazou <ebotcazou@adacore.com> 2012-10-04 Eric Botcazou <ebotcazou@adacore.com>
* lib/gcc-dg.exp (cleanup-ada-spec): New procedure. * lib/gcc-dg.exp (cleanup-ada-spec): New procedure.
......
// PR c++/53403
template <typename T>
class Foo
{
typedef void type;
template <typename U> friend void f();
public:
Foo() {}
};
template class Foo<void>;
template <typename T>
void f()
{
typedef Foo<void>::type type;
}
int main()
{
f<void>();
}
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