home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!mistral.greco-prog.fr!miniussi
- From: miniussi@mistral.greco-prog.fr (Alain MINIUSSI [91-92])
- Newsgroups: gnu.g++.bug
- Subject: bug report
- Date: 25 Jan 1993 20:13:46 -0500
- Organization: GNUs Not Usenet
- Lines: 53
- Sender: daemon@cis.ohio-state.edu
- Approved: bug-g++@prep.ai.mit.edu
- Distribution: gnu
- Message-ID: <9301231852.AA01763@mistral.labri>
-
- 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
- ------------------------------------------------------------------------------
-
-
-