This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/11207] New: ICE: negative index in array initialisation when no -funsigned-char


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11207

           Summary: ICE: negative index in array initialisation when no -
                    funsigned-char
           Product: gcc
           Version: 3.2.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: etienne.lorrain@masroudeau.com
                CC: gcc-bugs@gcc.gnu.org
 GCC build triplet: i386 Linux
  GCC host triplet: i386 Linux
GCC target triplet: i386 Linux

etienne@fulbert:~/projet/gujin$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,objc,ada --
prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-
include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-
nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --
enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.3 (Debian)
etienne@fulbert:~/projet/gujin$ cat f.c
#define _ 0
#define X 1
#define B(p0, p1, p2, p3, p4, p5, p6, p7) \
        {{p7, p6, p5, p4, p3, p2, p1, p0}}

union font_line_u {
      struct {
        unsigned char b0 :1, b1 :1, b2 :1, b3 :1, b4 :1, b5 :1, b6 :1, b7 :1;
        } __attribute__ ((packed)) bit;
      unsigned char group;
      } __attribute__ ((packed));

const union font_line_u font8x8[256][8] = {
      ['e'] = {
        B (_,_,_,_,_,_,_,_),
        B (_,_,_,_,_,_,_,_),
        B (_,_,_,X,_,_,_,_),
        B (_,_,X,_,X,_,_,_),
        B (_,_,X,X,_,_,_,_),
        B (_,_,X,_,_,_,_,_),
        B (_,_,_,X,X,_,_,_),
        B (_,_,_,_,_,_,_,_),
        },
      ['è'] = { /* e grave */
        B (_,_,_,X,_,_,_,_),
        B (_,_,_,_,X,_,_,_),
        B (_,_,_,X,_,X,_,_),
        B (_,_,X,_,X,_,_,_),
        B (_,_,X,X,_,_,_,_),
        B (_,_,X,_,_,_,_,_),
        B (_,_,_,X,X,_,_,_),
        B (_,_,_,_,_,_,_,_),
        },
        };
etienne@fulbert:~/projet/gujin$ gcc -c f.c -funsigned-char
etienne@fulbert:~/projet/gujin$ gcc -c f.c
f.c:24: Internal compiler error in tree_low_cst, at tree.c:3485
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
etienne@fulbert:~/projet/gujin$


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]