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/14289] New: ICE in a register array


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


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