First Last Prev Next    No search results available
Details
: [llvmgcc] Structure field with non-constant offset crashe...
Bug#: 360
: tools
: llvm-gcc
Status: VERIFIED
Resolution: FIXED
: All
: All
: 1.0
: P2
: normal
: 1.4

:
: compile-fail
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Chris Lattner <sabre@nondot.org>
Assigned To: Chris Lattner <sabre@nondot.org>

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2004-06-07 14:23
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

First Last Prev Next    No search results available