home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!bellahs!jjamison
- From: jjamison@bellahs.com (John Jamison RD AC)
- Subject: ostream or ostream_withassign
- Message-ID: <1992Nov19.043332.931@bellahs.com>
- Organization: Bell Atlantic Healthcare Systems
- Date: Thu, 19 Nov 1992 04:33:32 GMT
- Lines: 20
-
- I'm getting an "Illegal Instruction" crash in a program. The situation
- is a function, void foo_print(ostream& o). The caller is calling
- foo_print(cerr). In foo_print, the illegal instruction occurs during
- a statement like o << "Some message text\n";
-
- With a symbolic debugger (pdb) I look at cerr and o. In the caller,
- the debugger tells me that cerr is an instance of ostream_withassign.
- In foo_print() it tells me that o is of type ostream. They resolve to
- different addresses.
-
- Has anyone else had similar problems (Sun-SPARC, with CenterLine c++)?
- Just what is the difference between an ostream_withassign and an ostream?
-
- -John Jamison
-
- --
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
- John Jamison
- Bell Atlantic Healthcare Systems
-