friend35.C: New test.

* g++.old-deja/g++.pt/friend35.C: New test.  A template function
 	must be declared before its specializations can be named in friend
 	declarations.

From-SVN: r22861
This commit is contained in:
Alexandre Oliva 1998-10-06 00:24:05 +00:00 committed by Alexandre Oliva
parent 40208b1c3a
commit 0eaae86cab
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
1998-10-06 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.pt/friend35.C: New test. A template function
must be declared before its specializations can be named in friend
declarations.
1998-10-05 Dave Love <d.love@dl.ac.uk>
* g77.f-torture/execute/u77-test.f: Add regression test for RAND.

View File

@ -0,0 +1,7 @@
// Build don't link:
class foo {
friend void bar<int>(int); // ERROR - must be declared first - XFAIL *-*-*
};
template <typename T> void bar(T);