home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / gcc / bug / 2107 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.0 KB  |  39 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!dcs.ed.ac.UK!ret
  3. From: ret@dcs.ed.ac.UK (Rik)
  4. Subject: g++ 2.1 bug
  5. Message-ID: <2663.9208111831@garay.dcs.ed.ac.uk>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 11 Aug 1992 18:31:10 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 26
  12.  
  13. Hi again,
  14.         I don't know whether or not you received my last bug
  15. report, anyway here is another one.
  16.  
  17. >From the C++ reference manual r.14.7 (Friends) :
  18.  
  19. template<class T> class task {
  20.    friend task<T>* preempt(task<T>*) ;
  21. };
  22.  
  23. template<class T> task<T>* preempt(task<T>* t) { }
  24.  
  25. main () {
  26. task<int> i ;
  27. }
  28.  
  29. Compiler says " parse error before > " twice on line 2.
  30. Take out the <T> bit, and it crashes, signal 11.
  31. Am I missing something again ? Please tell me if this mail got through.
  32. Thanks !
  33.  
  34. > Richard Eyre-Todd.  Department of Computer Science, University of Edinburgh.
  35.  
  36. > Email: ret@uk.ac.ed.dcs                     | Solid fuel is for camp-fires,
  37. > or     ret%dcs.ed.ac.uk@nsfnet-relay.ac.uk  | not boosting Space Shuttles. :-)
  38.  
  39.