[Issue 15] New: internal compiler error: in expand_expr_real_1, at expr.c:9266

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Wed Oct 17 05:32:59 PDT 2012


http://gdcproject.org/bugzilla/show_bug.cgi?id=15

             Bug #: 15
           Summary: internal compiler error: in expand_expr_real_1, at
                    expr.c:9266
    Classification: Unclassified
           Product: GDC
           Version: 4.8.x
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw at gdcproject.org
        ReportedBy: deadalnix at gmail.com


Code below trigger an ICE.

It is likely that dmd suffer from the same bug but don't detect it in the
backend.

import std.algorithm;
class A {

}

class B {
    A a;
}

class C {

    void visit(B b) {
        auto as = [b.a];
        as.map!(d => d);
    }
}

gdc output :

/opt/gdc/include/d/4.8.0/std/algorithm.d: In member function
'bug.C.visit.map!(__lambda2).map!(A[]).map':
/opt/gdc/include/d/4.8.0/std/algorithm.d:380: internal compiler error: in
expand_expr_real_1, at expr.c:9266
0x71c376 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**)
    ../../gcc-4.8-20121007/gcc/expr.c:9261
0x723471 store_expr(tree_node*, rtx_def*, int, bool)
    ../../gcc-4.8-20121007/gcc/expr.c:5180
0x72807e expand_assignment(tree_node*, tree_node*, bool)
    ../../gcc-4.8-20121007/gcc/expr.c:4826
0x67d76f expand_gimple_stmt_1
    ../../gcc-4.8-20121007/gcc/cfgexpand.c:2106
0x67d76f expand_gimple_stmt
    ../../gcc-4.8-20121007/gcc/cfgexpand.c:2202
0x67eb84 expand_gimple_basic_block
    ../../gcc-4.8-20121007/gcc/cfgexpand.c:3965
0x6807a3 gimple_expand_cfg
    ../../gcc-4.8-20121007/gcc/cfgexpand.c:4484
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gdcproject.org/bugzilla> for instructions.

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.


More information about the D.gnu mailing list