First Last Prev Next    No search results available
Details
: [llvmgcc] Crash compiling variable length array of struct...
Bug#: 374
: tools
: llvm-gcc
Status: RESOLVED
Resolution: FIXED
: All
: All
: 1.0
: P2
: normal
: 1.3

:
: compile-fail
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Chris Lattner <clattner@apple.com>
Assigned To: Chris Lattner <clattner@apple.com>
:

Attachments


Note

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

Related actions


Description:   Opened: 2004-06-18 19:43
This reduced testcase crashes llvmgcc.

struct S { };

int xxxx(int a) {
  struct S comps[a];
  &comps[0];
}

-Chris
------- Comment #1 From Chris Lattner 2004-06-18 19:43:46 -------
Note that this blocks compilation of the CFE on freebsd.
------- Comment #2 From Chris Lattner 2004-06-18 20:09:14 -------
Fixed.  Patch here:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040614/015289.html

Testcase here:
CFrontend/2004-06-18-VariableLengthArrayOfStructures.c

-Chris

First Last Prev Next    No search results available