🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Alain MINIUSSI [91-92] Tue, 26 Jan 1993 01:13
bug report
#1409
Author: Alain MINIUSSI [91-92]
Date: Tue, 26 Jan 1993 01:13
51 lines
2118 bytes
I think that the following code is legal:

----------

#include <stream.h>

template <class T>
class C {
  class B<T>; 
friend B<T>;  

public: 
  C() {};
  ~C() {};
};

main()
{
  C<int> ;
}

-------------------------

The compiler output is:

geocub>CC : g++ truc.cc -c -v
Reading specs from /usr/local/lib/gcc-lib/sun4/2.3.3/specs
gcc version 2.3.3
 /usr/local/lib/gcc-lib/sun4/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D
sparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix truc.cc /usr/tmp/cca05
965.i
GNU CPP version 2.3.3 (sparc)
 /usr/local/lib/gcc-lib/sun4/2.3.3/cc1plus /usr/tmp/cca05965.i -quiet -dumpbase truc.cc -version -o /
usr/tmp/cca05965.s
GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
truc.cc:7: parse error before `<'
truc.cc:8: Internal compiler error.
truc.cc:8: Please report this to `bug-g++@prep.ai.mit.edu'.
geocub>CC :

Alain

------------------------------------------------------------------------------
Alain Miniussi                       | Je distingue les genies doues et les 
(avec le "i" avant le "u")           | genies pas doues, "le genie est une 
e-mail: miniussi@labri.greco-prog.fr | longue patience", c'est une reflexion
LaBRI, Univ. BORDEAUX I              | de genie pas doue.     B. Vian
351, cours de la Liberation          | 
33405 TALENCE Cedex                  | (D'ailleurs, c'est souvent une longue
FRANCE                               |  patience de la part des autres) Id
------------------------------------------------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads