🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

g++ bug

#2022
From: sdm
Date: Sat, 20 May 1989 04:13
49 lines
1747 bytes
Note the fatal signal received by c++ in the following transcript:

    % g++ -g -v -c tester.cc -o tester.o
    g++ version 1.34.2
     /cs/lib/gnu/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ tester.cc /tmp/cca22554.cpp
    GNU CPP version 1.35
     /cs/lib/gnu/gcc-c++ /tmp/cca22554.cpp -quiet -dumpbase tester.cc -noreg -version -G -o /tmp/cca22554.s
    GNU C++ version 1.34.2 (sparc) compiled by GNU C version 1.34.
    Program c++ got fatal signal 6.

g++ -E tester.cc produces the following:

    # 1 "tester.cc"
    class base
    {
      int x;
    };

    class derived: public base
    {
      int y;
    };


    main()
    {
      base b;
      derived d;
      base *bp;
      derived *dp;

      bp = dp;
      bp = (base *) dp;

      b = d;
    }

This is running on a sun4 running SunOS Release 4.0.  The same source
compiles without problem on a sun3 running the same version of g++ and GNU
CPP. 

Since I'm not in charge of installing the compiler, I'm not sure what the
names of the files 'tm.h' and 'md' were during installation, but I did poke
around in the installation directory, and files with those names exist
there.  If you can't do anything without the names of those files, let me
know, and I'll find out what was used during installation.

Scott Meyers
sdm@cs.brown.edu
Technical Details
Message-ID: <8905200413.AA22620@barney.cs.brown.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!CS.BROWN.EDU!sdm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!CS.BROWN.EDU!sdm
From: sdm@CS.BROWN.EDU
Newsgroups: gnu.g++.bug
Subject: g++ bug
Message-ID: <8905200413.AA22620@barney.cs.brown.edu>
Date: 20 May 89 04:13:55 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 49