home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16546 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.1 KB  |  30 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!bellahs!jjamison
  3. From: jjamison@bellahs.com (John Jamison RD AC)
  4. Subject: ostream or ostream_withassign
  5. Message-ID: <1992Nov19.043332.931@bellahs.com>
  6. Organization: Bell Atlantic Healthcare Systems
  7. Date: Thu, 19 Nov 1992 04:33:32 GMT
  8. Lines: 20
  9.  
  10. I'm getting an "Illegal Instruction" crash in a program. The situation
  11. is a function, void foo_print(ostream& o). The caller is calling
  12. foo_print(cerr).  In foo_print, the illegal instruction occurs during
  13. a statement like o << "Some message text\n";  
  14.  
  15. With a symbolic debugger (pdb) I look at cerr and o. In the caller,
  16. the debugger tells me that cerr is an instance of ostream_withassign.
  17. In foo_print() it tells me that o is of type ostream. They resolve to
  18. different addresses.
  19.  
  20. Has anyone else had similar problems (Sun-SPARC, with CenterLine c++)?
  21. Just what is the difference between an ostream_withassign and an ostream?
  22.  
  23. -John Jamison
  24.  
  25. -- 
  26. /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  27. \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
  28. John Jamison
  29. Bell Atlantic Healthcare Systems
  30.