🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1589

g++ 1.32 gets fatal signal

#1589
From: "Douglas C. Schmidt"
Date: Sun, 01 Jan 1989 20:08
38 lines
1461 bytes
Hi,

  The following short program crashes g++ 1.32 running on the sparc:
  
----------------------------------------
#include <stream.h>

class X {
   public:
      int i;
};

main ( int, char *[ ] ) {
   int X::*pmXi = &X::i;
   
   cout << *pmXi;         
}
----------------------------------------

Here's the diagnostics:

----------------------------------------
g++ version 1.32.0
 /usr/public/lib/g++/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dsparc
-Dsun -Dunix test.C /tmp/cca06241.cpp
GNU CPP version 1.32
 /usr/public/lib/g++/gcc-c++ /tmp/cca06241.cpp -quiet -dumpbase test.C
-noreg -version -o /tmp/cca06241.s
GNU C++ version 1.32.0 (sparc) compiled by GNU C version 1.31.
In function main (int, char **):
test.C:11: bad argument 0 for function `ostream::operator << (const
char *)' (type was struct ostream *)
Failed assertion form != MEMBER_TYPE at line 660 of `cplus-convert.c'.
/usr/public/g++: Program c++ got fatal signal 6.
----------------------------------------

Doug
Technical Details
Message-ID: <8901011216.aa03385@PARIS.ICS.UCI.EDU>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!PARIS.ICS.UCI.EDU!schmidt%crimee.ics.uci.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!PARIS.ICS.UCI.EDU!schmidt%crimee.ics.uci.edu
From: schmidt%crimee.ics.uci.edu@PARIS.ICS.UCI.EDU ("Douglas C. Schmidt")
Newsgroups: gnu.g++.bug
Subject: g++ 1.32 gets fatal signal
Message-ID: <8901011216.aa03385@PARIS.ICS.UCI.EDU>
Date: 1 Jan 89 20:08:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 38