🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jeff Gehlhaar Wed, 11 Nov 1992 05:31
Gcc loop-unroll bug...
#1354
Author: Jeff Gehlhaar
Date: Wed, 11 Nov 1992 05:31
48 lines
1839 bytes
gcc version 2.3.1, SunOS 4.1.1 Sparc machine

// This is a program that causes G++ to commit suicide.
// Don't ask me why all of this seems necessary to tickle the bug,
// but removing anything causes a successful compile.

#include <iostream.h>
#define SHOW(x)    do { cout << x << endl; } while (0)

class List
{
public:
        List(void) { list = 0; }
        class List *list;
};

class Class
{
public:
        Class(char *param);
        List queue;
};

Class::Class(char *param)
{
        SHOW("Display some text");
}

// When compiled with:
//      g++ -v -c -O -g -funroll-loops -Wshadow bug6.cc
// it procduces:
//      Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.1/specs
//      gcc version 2.3.1
//      /usr/local/lib/g++-include/streambuf.h: In method `ios::ios (struct
streambuf* (=  0 ), class ostream* (=  0 ))':
//      In file included from /usr/local/lib/g++-include/iostream.h:25,
from bug6.cc:5:
//      /usr/local/lib/g++-include/streambuf.h:436: warning: declaration of
`tie' shadows a member of `this'
//      /usr/local/bin/gcc: Internal compiler error: program cc1plus got
fatal signal 11


======================================================
Jeff Gehlhaar           Qualcomm Inc,  
jbg@qualcomm.com        San Diego, CA, USA
(619) 597-5241          "The Elegant Solution...."
======================================================
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