🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Spencer W. Thomas Wed, 23 Aug 1989 20:59
Bug in g++ 1.36.0-
#370
Author: Spencer W. Thomas
Date: Wed, 23 Aug 1989 20:59
22 lines
905 bytes
I have been testing g++ 1.36.0- on some code of mine that won't
compile under 1.35.  I ran into a little bug in the process.  This was
run on a SUN4, if that makes a difference.

The following program causes g++ 1.36.0- (cc1plus) to get a
segmentation violation (in yyparse) when compiled with the flag
-fthis-is-variable:

void bar()
{
    int *i = new int;
}

This slight modification (or leaving off -fthis-is-variable) passes:

void bar()
{
    int *i = new int[1];
}

--
=Spencer (spencer@eecs.umich.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