Internal compiler error in 2.96 19991213

Matt Austern austern@isolde.engr.sgi.com
Mon Dec 13 17:32:00 GMT 1999


Here is a simple (not necessarily minimal) test case.
Note that the -fPIC option is essential.

			--Matt Austern


austern@pizzelle% g++ -v
Reading specs from
/hosts/isolde/home/austern/tmp/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 19991213 (experimental)
austern@pizzelle% cat bug.C
typedef struct {
  unsigned char buf[2048];
} X;


struct Y{
  void f();
  struct {
    X x;
  } _s[1];
};

typedef char* CharStar;

void Y::f() {
  const CharStar s = "abcd";
  for (int i = 0; i < 4; i++){
    _s[0].x.buf[32+i] = s[i];
  }
}


austern@pizzelle% g++ -c -fPIC bug.C
bug.C: In method `void Y::f ()':
bug.C:20: Unrecognizable insn:
(insn 46 44 48 (set (reg:SI 4 esi)
        (plus:SI (reg:SI 2 ecx)
            (const (unspec[
                        (symbol_ref/v:SI ("*.LC0"))
                    ]  7)))) -1 (nil)
    (nil))
bug.C:20: Internal compiler error in `insn_default_length', at
insn-attrtab.c:215
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
austern@pizzelle%


More information about the Gcc-bugs mailing list