middle-end/6008: Internal compiler error in expand_end_loop, at stmt.c:2527
andy@alexa.com
andy@alexa.com
Tue Mar 19 21:51:00 GMT 2002
>Number: 6008
>Category: middle-end
>Synopsis: Internal compiler error in expand_end_loop, at stmt.c:2527
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Tue Mar 19 17:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Andrew D Jewell
>Release: gcc version 3.0.4 (Red Hat Linux 7.2 3.0.4-1)
>Organization:
>Environment:
vectra2.alexa.com andy 108% g++3 -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
gcc version 3.0.4 (Red Hat Linux 7.2 3.0.4-1)
vectra2.alexa.com andy 109% uname -a
Linux vectra2.alexa.com 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown
>Description:
I get this Internal compiler error when compiling this code (which compiles correctly in 2.95.3) :
vectra2.alexa.com andy 106% g++3 -O -Wall n_inverter.cc
n_inverter.cc: In constructor `InverterImp::InverterImp(const char*, unsigned int)':
n_inverter.cc:46: Internal compiler error in expand_end_loop, at stmt.c:2527
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
>How-To-Repeat:
#include <cstring>
#include <map>
#include <vector>
#include <set>
typedef int ResultCode;
typedef unsigned RecordID;
typedef unsigned int uint32;
enum {
TextField,
SiteField,
UrlField,
TitleField,
DateField,
LinkField,
LSiteField,
CoolField,
MaxFields
};
class Term {
public:
enum {LEN=11, DLEN=12};
Term() {t[0]=0; t[LEN]=0;}
explicit Term(const char * s) {strncpy(t, s, LEN); t[LEN]=0;}
private:
char t[DLEN];
};
class InverterImp {
public:
InverterImp(const char * inSrcName, uint32 inSrcSize);
private:
typedef std::vector<RecordID> VR;
typedef std::map<Term, VR> TermMap_t;
TermMap_t _posts[MaxFields];
};
InverterImp::InverterImp(const char * inSrcName, uint32 inSrcSize)
{
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list