www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 254] New: [ICE] (thunk_adjust) cgraphunit.c:1535: Segmentation


            Bug ID: 254
           Summary: [ICE] (thunk_adjust) cgraphunit.c:1535: Segmentation
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: ibuclaw gdcproject.org

Found when reducing bug 253

import impA;

interface A
    void foo(string[string]);

class C : B, A
module impA;

class B
    void foo(string[string])
        if (to) return;


$ gdc test.d 
test.d:8:1: error: class test.C interface function 'void foo(string[string])'
is not implemented
 class C : B, A
imp.d:7:13: error: undefined identifier 'to'
         if (to) return;
test.d: In function ‘_DT16_D3imp1B3fooMFHAyaAyaZv’:
test.d:1:8: internal compiler error: Segmentation fault
 import imp;
0xc16c96 crash_signal
0x90c4e5 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
0x90c4e5 fold_build_pointer_plus_hwi_loc(unsigned int, tree_node*, long)
0x7ea910 thunk_adjust(gimple_stmt_iterator*, tree_node*, bool, long,
0x7eb292 cgraph_node::expand_thunk(bool, bool)
0x707adf finish_thunk
0x707adf make_thunk(FuncDeclaration*, int)
0x753437 TypeInfoVisitor::layout_base_vtable(ClassDeclaration*,
ClassDeclaration*, unsigned long)
0x753437 TypeInfoVisitor::visit(TypeInfoClassDeclaration*)
0x753437 TypeInfoClassDeclaration::accept(Visitor*)
0x753437 layout_classinfo(ClassDeclaration*)
0x71c790 ClassDeclaration::toObjFile()
0x71f9dd Module::genobjfile(bool)
0x6feb7b d_parse_file()
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

At a glance of the backtrace, seems like a rather lack of error handling.

You are receiving this mail because:
You are watching all bug changes.
Mar 04 2017