home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / g / lib / bug / 715 next >
Encoding:
Text File  |  1992-12-22  |  1.9 KB  |  51 lines

  1. Newsgroups: gnu.g++.lib.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osnome.che.wisc.edu!epperly
  3. From: epperly@osnome.che.wisc.edu (Tom Epperly)
  4. Subject: Libg++ 2.3 Error in SLList.h include file gives internal error
  5. Message-ID: <9212211634.AA16939@osnome.che.wisc.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 21 Dec 1992 04:34:10 GMT
  10. Approved: bug-lib-g++@prep.ai.mit.edu
  11. Lines: 38
  12.  
  13. There is a simple error in the SLList.h include file which allows it
  14. to be included multiple times.  Here is a patch:
  15.  
  16. 23c23
  17. < #define _SLList_h 1
  18. ---
  19. > #define _LList_h 1
  20.  
  21. Including it twice on a DECstation 3100 running Ultrix 4.2 and gcc
  22. 2.3.2, gives an internal error.
  23.  
  24. // test program
  25. #include<SLList.h>
  26. #include<SLList.h>
  27.  
  28. main()
  29. {
  30.   SLList<int> intlist;
  31. }
  32.  
  33.  
  34. /usr/local/lib/g++-include/SLList.h:28: redefinition of `struct BaseSLNode'
  35. /usr/local/lib/g++-include/SLList.h:46: redefinition of `struct BaseSLList'
  36. /usr/local/lib/g++-include/SLList.h:53: ambiguous method `BaseSLList::BaseSLList ()' in structure
  37. /usr/local/lib/g++-include/SLList.h:64: ambiguous method `void * BaseSLList::prepend (struct BaseSLNode*)' in structure
  38. /usr/local/lib/g++-include/SLList.h:65: ambiguous method `void * BaseSLList::append (struct BaseSLNode*)' in structure
  39. In file included from BnBList.cc:26:
  40. /usr/local/lib/g++-include/SLList.h:113: Internal compiler error.
  41. /usr/local/lib/g++-include/SLList.h:113: Please report this to `bug-g++@prep.ai.mit.edu'.
  42. --
  43. -------------------------------------------------------------------------------
  44. Tom Epperly    University of Wisconsin-Madison        Chemical Engineering
  45. (608) 262-8264    epperly@osnome.che.wisc.edu        Graduate Student
  46. Member of the League for Programming Freedom(fighting software monopolies)
  47.     For more info contact me or lpf@uunet.uu.net.
  48. If you feel you must flame, please send email rather than posting.
  49. -------------------------------------------------------------------------------
  50.  
  51.