Commit 748d4c7e by Mark Mitchell Committed by Mark Mitchell

re PR c++/7053 (ICE when declaring a function already defined as a friend method…

re PR c++/7053 (ICE when declaring a function already defined as a friend method of a template class)

	PR c++/7053
	* g++.dg/template/friend20.C: New test.

From-SVN: r69351
parent 060ff934
2003-07-14 Mark Mitchell <mark@codesourcery.com> 2003-07-14 Mark Mitchell <mark@codesourcery.com>
PR c++/7053
* g++.dg/template/friend20.C: New test.
PR c++/7019 PR c++/7019
* g++.dg/template/overload2.C: New test. * g++.dg/template/overload2.C: New test.
......
template <class T>
struct A
{
friend void bar(A<T> a) {}
};
void bar(A<int>);
int main()
{
A<int> a;
bar(a);
}
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