internal compiler error when compiling a class
Iain Buclaw
ibuclaw at ubuntu.com
Sun Sep 1 05:28:32 PDT 2013
On 1 September 2013 10:55, Iain Buclaw <ibuclaw at ubuntu.com> wrote:
> On 20 August 2013 17:40, Timo Sintonen <t.sintonen at luukku.com> wrote:
>> I just updated my arm cross compiler to the latest head of gdc and gcc. Now
>> I get this every time when I try to compile a file that has a class:
>>
>> internal compiler error: Segmentation fault
>> 0x99b39f crash_signal
>> ../../gcc/gcc/toplev.c:335
>> 0x8413ec tree_check
>> ../../gcc/gcc/tree.h:3689
>> 0x8413ec get_odr_type(tree_node*, bool)
>> ../../gcc/gcc/ipa-devirt.c:263
>> 0x841ac2 build_type_inheritance_graph()
>> ../../gcc/gcc/ipa-devirt.c:360
>> 0x6b6e21 analyze_functions
>> ../../gcc/gcc/cgraphunit.c:854
>> 0x6b8285 finalize_compilation_unit()
>> ../../gcc/gcc/cgraphunit.c:2151
>> 0x5fe5b4 d_write_global_declarations
>> ../../gcc/gcc/d/d-lang.cc:619
>>
>> This occurs every time in the last line of the last function in a class, no
>> matter what the line or the function contains.
>>
>> Is this a bug in gdc or gcc or just in my system?
>
> Hmm... ipa-devirt.c doesn't exist in the copy of gcc dev I've got...
> *updates gcc and tests*
>
Yep reproducible on current development snapshot... raise a bug if
you haven't already done so. Fix is simple enough (move generation of
BINFO out of toDebug as is required regardless of whether -g was sent
on the command-line).
Regards
--
Iain Buclaw
*(p < e ? p++ : p) = (c & 0x0f) + '0';
More information about the D.gnu
mailing list