home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!cis.ohio-state.edu!dcs.ed.ac.UK!ret
- From: ret@dcs.ed.ac.UK (Rik)
- Subject: g++ 2.1 bug
- Message-ID: <2663.9208111831@garay.dcs.ed.ac.uk>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Tue, 11 Aug 1992 18:31:10 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 26
-
- Hi again,
- I don't know whether or not you received my last bug
- report, anyway here is another one.
-
- >From the C++ reference manual r.14.7 (Friends) :
-
- template<class T> class task {
- friend task<T>* preempt(task<T>*) ;
- };
-
- template<class T> task<T>* preempt(task<T>* t) { }
-
- main () {
- task<int> i ;
- }
-
- Compiler says " parse error before > " twice on line 2.
- Take out the <T> bit, and it crashes, signal 11.
- Am I missing something again ? Please tell me if this mail got through.
- Thanks !
-
- > Richard Eyre-Todd. Department of Computer Science, University of Edinburgh.
-
- > Email: ret@uk.ac.ed.dcs | Solid fuel is for camp-fires,
- > or ret%dcs.ed.ac.uk@nsfnet-relay.ac.uk | not boosting Space Shuttles. :-)
-
-