Hi all,
In the last few days, some change introduced an internal compiler error. On my G4 (PPC), I'm getting this:
$ cat testcase.i
struct A {};
struct B {
struct A c[0];
};
extern const struct B *pB;
void bork(void) {
const struct A *pA = pB->c;
}
$ /Users/wendling/llvm/llvm-gcc-4.2.obj/./gcc/xgcc -B/Users/wendling/llvm/llvm-gcc-4.2.obj/./gcc/ -B/Users/wendling/llvm/llvm-gcc-4.2.install/powerpc-apple-darwin8.11.0/bin/ -B/Users/wendling/llvm/llvm-gcc-4.2.install/powerpc-apple-darwin8.11.0/lib/ -O2 -pipe -mmacosx-version-min=10.4 -g -c testcase.i
../../llvm-gcc-4.2.src/gcc/llvm-types.cpp:675: failed assertion `false && "Type not laid out for LLVM?"'
testcase.i: In function 'bork':
testcase.i:6: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
This is the compiler that GCC builds, so it's an error in our code base -- easier to debug :-). I know that this is scant information, but was anyone working in this area recently?
Thanks!
-bw