Commit 3a36c180 by Paolo Carlini Committed by Paolo Carlini

re PR c++/65619 (friend declaration with template template parameter not recognized)

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

	PR c++/65619
	* g++.dg/template/friend67.C: New.

From-SVN: r270146
parent a7f70a09
2019-04-04 Paolo Carlini <paolo.carlini@oracle.com> 2019-04-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65619
* g++.dg/template/friend67.C: New.
2019-04-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/61327 PR c++/61327
* g++.dg/cpp0x/friend4.C: New. * g++.dg/cpp0x/friend4.C: New.
* g++.dg/cpp0x/friend5.C: Likewise. * g++.dg/cpp0x/friend5.C: Likewise.
......
// PR c++/65619
template <class>
class foo
{
int i;
template <template <class> class T>
friend foo<T<int> > func();
};
template <template <class> class T>
foo<T<int> > func()
{
foo<T<int> > f;
f.i = 3;
return f;
}
template <class>
struct test {};
int main()
{
func<test>();
}
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