🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by sdm Sat, 20 May 1989 04:13
g++ bug
#2022
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads