[LLVMbugs] [Bug 1863] parser crash involving isConstantExpr() on incorrect code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Dec 17 23:04:58 PST 2007


Chris Lattner <sabre at nondot.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Chris Lattner <sabre at nondot.org>  2007-12-18 01:04:57 ---
Fixed, we now emit:

t3.c:4:14: error: variable length array declared outside of any function
 typedef int x[foo()];
             ^ ~~~~~
t3.c:4:16: error: initializer element is not constant
 typedef int x[foo()];
t3.c:6:21: error: initializer element is not constant
 int z = sizeof(int[foo()]);
t3.c:7:2: error: expected identifier or '('
 return y + z;
t3.c:8:1: error: expected identifier or '('

The second error looks  bogus though.


Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list