Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Per Abrahamsen
Mon, 29 May 1989 21:27
g++ 1.35.0 gets a fatal signal
Author: Per Abrahamsen
Date: Mon, 29 May 1989 21:27
Date: Mon, 29 May 1989 21:27
32 lines
1580 bytes
1580 bytes
g++ 1.35.0 compiled on a sun3/60 under SunOS4.0.1
Script started on Mon May 29 23:15:38 1989
% cat err2.cc
static t x = t();
struct t
{
inline t() { }
};
static t y = x;
% g++ -v err2.cc
g++ version 1.35.0
/home/local/gnu/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__cplusplus -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 err2.cc /tmp/cca25141.cpp
GNU CPP version 1.35
/home/local/gnu/lib/gcc-cc1plus /tmp/cca25141.cpp -quiet -dumpbase err2.cc -noreg -version -o /tmp/cca25141.s
GNU C++ version 1.35.0 (68k, MIT syntax) compiled by GNU C version 1.35.
err2.cc:1: parse error before `x'
err2.cc:1: warning: implicit declaration of function `t'
err2.cc:1: initializer for static variable is not constant
err2.cc:1: warning: data definition lacks type or storage class
err2.cc:4: warning: type declaration of t shadows previous declaration
err2.cc:4: warning: `t' was previously implicitly declared to return `int'
err2.cc:4: warning: `t' was declared implicitly `extern' and later `static'
err2.cc:8: Segmentation violation
g++: Program cc1plus got fatal signal 11.
% exit
exit
script done on Mon May 29 23:17:03 1989
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