Article View: gnu.g++.bug
Article #1315Enum bug, affects library
From: Jeff Gehlhaar
Date: Mon, 04 Jan 1993 02:20
Date: Mon, 04 Jan 1993 02:20
49 lines
2291 bytes
2291 bytes
// An enum problem: Internal compiler error 73.
// This replaces a problem with enums (bug005) reported previously. That
// suicide attempt no longer happens; now it gets an ``internal compiler
// error'' instead. The code is extracted from the G++ include files.
// The result of ``g++ -v -fshort-enums bug016.cc'' is attached below.
// -- Greg
// from <streambuf.h>
class ios {
public:
enum { skipws=01, left=02, right=04, internal=010,
dec=020, oct=040, hex=0100,
showbase=0200, showpoint=0400, uppercase=01000, showpos=02000,
scientific=04000, fixed=010000, unitbuf=020000, stdio=040000,
dont_close=0x80000000 //Don't delete streambuf on stream destruction
};
};
// from <iostream.h>
inline ios& dec(ios& i)
{ i.setf(ios::dec, ios::dec|ios::hex|ios::oct); return i; }
/* Compiler output follows:
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/specs
gcc version 2.3.3
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cpp -lang-c++ -v -undef
-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__
-D__sun__ -D__unix__ -D__sparc -D__sun -D__unix bug016.cc
/usr/tmp/cca29216.i
GNU CPP version 2.3.3 (sparc)
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cc1plus
/usr/tmp/cca29216.i -quiet -dumpbase bug016.cc -version -fshort-enums -o
/usr/tmp/cca29216.s
GNU C++ version 2.3.3 (sparc) compiled by CC.
bug016.cc: In function `class ios& dec (class ios&)':
bug016.cc:25: Internal compiler error 73.
bug016.cc:25: Please report this to `bug-g++@prep.ai.mit.edu'.
Compiler output above */
======================================================
Jeff Gehlhaar Qualcomm Inc,
jbg@qualcomm.com San Diego, CA, USA
(619) 597-5241 "The Elegant Solution...."
======================================================
Technical Details
Message-ID:
<9301041720.AA17340@harvey>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!qualcomm.com!jbgShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!qualcomm.com!jbg From: jbg@qualcomm.com (Jeff Gehlhaar) Subject: Enum bug, affects library Message-ID: <9301041720.AA17340@harvey> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 4 Jan 1993 02:20:50 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 51