D.gnu - [Bug 278] New: ICE in -fdump-tree-original-raw
- gdc-bugzilla gdcproject.org (73/73) Nov 11 2017 https://bugzilla.gdcproject.org/show_bug.cgi?id=278
https://bugzilla.gdcproject.org/show_bug.cgi?id=278 Bug ID: 278 Summary: ICE in -fdump-tree-original-raw Product: GDC Version: development Hardware: All OS: All Status: NEW Severity: normal Priority: Normal Component: gdc Assignee: ibuclaw gdcproject.org Reporter: johannespfau gmail.com Test case: ------------------------------------------------------ import core.bitop; struct S { uint field; uint prop() property { return field; } uint prop(uint value) property { return field = value; } } void main() { S s; ((auto ref _e1) => _e1.prop(_e1.prop() + 1))(s); volatileStore(cast(uint*)32, s.field); } ------------------------------------------------------ gdc -fdump-tree-original-raw -c test.d <no_file>: In function 'main': <no_file>:1:0: internal compiler error: tree check: expected tree that contains 'decl with visibility' structure, have 'translation_unit_decl' in dequeue_and_dump, at tree-dump.c:340 0x5d80d9 tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ../../gcc-8-20171029/gcc/tree.c:9268 0xca1fec contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gcc-8-20171029/gcc/tree.h:3208 0xca1fec dequeue_and_dump ../../gcc-8-20171029/gcc/tree-dump.c:340 0xca1fec dump_node(tree_node const*, unsigned long, _IO_FILE*) ../../gcc-8-20171029/gcc/tree-dump.c:745 0xc83b09 dump_function_to_file(tree_node*, _IO_FILE*, unsigned long) ../../gcc-8-20171029/gcc/tree-cfg.c:7767 0x862397 dump_function(int, tree_node*) ../../gcc-8-20171029/gcc/dumpfile.c:1014 0x75b46e finish_function(tree_node*) ../../gcc-8-20171029/gcc/d/decl.cc:1831 0x760521 DeclVisitor::visit(FuncDeclaration*) ../../gcc-8-20171029/gcc/d/decl.cc:876 0x75f977 DeclVisitor::visit(AttribDeclaration*) ../../gcc-8-20171029/gcc/d/decl.cc:217 0x75b011 build_decl_tree(Dsymbol*) ../../gcc-8-20171029/gcc/d/decl.cc:898 0x76d3f0 build_module_tree(Module*) ../../gcc-8-20171029/gcc/d/modules.cc:716 0x75faab DeclVisitor::visit(Module*) ../../gcc-8-20171029/gcc/d/decl.cc:137 0x75b011 build_decl_tree(Dsymbol*) ../../gcc-8-20171029/gcc/d/decl.cc:898 0x754438 d_parse_file() ../../gcc-8-20171029/gcc/d/d-lang.cc:1219 -- You are receiving this mail because: You are watching all bug changes.
Nov 11 2017