public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: andy@alexa.com
To: gcc-gnats@gcc.gnu.org
Subject: middle-end/6008: Internal compiler error in expand_end_loop, at stmt.c:2527
Date: Tue, 19 Mar 2002 17:06:00 -0000	[thread overview]
Message-ID: <20020320010001.5396.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2002-03-20  1:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19 17:06 andy [this message]
2002-03-21  7:43 rodrigc
2002-04-20 13:32 rodrigc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020320010001.5396.qmail@sources.redhat.com \
    --to=andy@alexa.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).