[Bug c/14289] New: ICE in a register array

meccoli at nergal dot it gcc-bugzilla@gcc.gnu.org
Wed Feb 25 11:04:00 GMT 2004


should it be a compilation error???

COMMAND:
gcc -S -O0 -save-temps pippo.c

OUTPUT:
pippo.c: In function `Nase':
pippo.c:5: warning: address of register variable `a' requested
pippo.c:5: internal compiler error: Segmentation fault

PREPROCESSED FILE:
# 1 "pippo.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "pippo.c"
register int a[2] asm("ebx");
void Nase(void)
{
        int i=6;
        a[i]=5;
}

-- 
           Summary: ICE in a register array
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: meccoli at nergal dot it
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: linux 2.4  on i386
GCC target triplet: linux 2.4 on i386


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



More information about the Gcc-bugs mailing list