Hi all,

Attached is a patch for PR855. I don't have access to the llvm-gcc4 branch (I got my stuff from the anonymous server), but would also like other eyes on this patch.

Here's the testcase:

$ more test/Regression/CFrontend/2006-09-19-SizeOfCrash.c
// RUN: %llvmgcc %s -S -o /dev/null 2>&1 | not grep 'internal compiler error'
// PR855
struct A X[(927 - 37) / sizeof(struct A)];

Share and enjoy!


patch-855.txt (1.9 KB)