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 middle-end/30286] New: [4.1 Regression] Segfault with -O2 -ftrapv


Testcase:
struct free_block {
  struct free_block *next;
};
struct mm {
  struct free_block *free_arr[25];
};
void get_exact(int i, struct mm *mm, struct free_block *p)
{
  int j;
  for (j=14; j>i; j--)
      mm->free_arr[j] = p->next;
}


-- 
           Summary: [4.1 Regression] Segfault with -O2 -ftrapv
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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