www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 15] New: internal compiler error: in expand_expr_real_1, at


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

Code below trigger an ICE.

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

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
/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**)
0x723471 store_expr(tree_node*, rtx_def*, int, bool)
0x72807e expand_assignment(tree_node*, tree_node*, bool)
0x67d76f expand_gimple_stmt_1
0x67d76f expand_gimple_stmt
0x67eb84 expand_gimple_basic_block
0x6807a3 gimple_expand_cfg
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.
Oct 17 2012