Article View: gnu.gcc.bug
Article #1354Gcc loop-unroll bug...
From: Jeff Gehlhaar
Date: Wed, 11 Nov 1992 05:31
Date: Wed, 11 Nov 1992 05:31
48 lines
1839 bytes
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...."
======================================================
Technical Details
Message-ID:
<9211112031.AA25030@harvey>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!qualcomm.com!jbgShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!qualcomm.com!jbg From: jbg@qualcomm.com (Jeff Gehlhaar) Subject: Gcc loop-unroll bug... Message-ID: <9211112031.AA25030@harvey> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 11 Nov 1992 05:31:34 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 50