[LLVMbugs] [Bug 360] NEW: variable sized array case crashes CFE

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jun 7 12:23:06 PDT 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=360

           Summary: variable sized array case crashes CFE
           Product: tools
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


Here's a testcase:

---
int sub1(int i, char *pi) {
  typedef int foo[i];
  struct bar {foo f1; int f2;} *p = (struct bar *) pi;
  return p->f2;
}
---

I'm not sure exactly what a variable sized array IN a structure means, but we
shouldn't segfault in any case.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list