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:
parent
060ff934f6
commit
748d4c7e65
|
@ -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.
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue