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
This commit is contained in:
Mark Mitchell 2003-07-14 20:20:27 +00:00 committed by Mark Mitchell
parent 060ff934f6
commit 748d4c7e65
2 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2003-07-14 Mark Mitchell <mark@codesourcery.com>
PR c++/7053
* g++.dg/template/friend20.C: New test.
PR c++/7019
* g++.dg/template/overload2.C: New test.

View File

@ -0,0 +1,15 @@
template <class T>
struct A
{
friend void bar(A<T> a) {}
};
void bar(A<int>);
int main()
{
A<int> a;
bar(a);
}