------- Additional Comments From wmahan at gmail dot com 2005-08-31 16:23 ------- I guess that is a bug in my test case. I didn't notice because it compiles fine with gcc 4.0.1 when A.class and A$AInt.class are not present.
The problem seems to be that when check_inner_circular_reference() is looking for circular references, it segfaults when it gets to the tree for A, which has ->type.binfo == NULL. I'm not sure if that's supposed to happen. Here's a patch that fixes the bug for me, but it may just fix the symptom rather than the real problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23620