[Bug 191] New: internal error when nesting class and recursive calls

via D.gnu d.gnu at puremagic.com
Thu Jun 18 11:38:18 PDT 2015


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

            Bug ID: 191
           Summary: internal error when nesting class and recursive calls
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: sebastien.alaiwan at gmail.com

The following code causes an internal error:

class OuterClass
{
  void recurse()
  {
    class InnerClass
    {
      void test()
      {
        void localFunction()
        {
          recurse();
        }

        localFunction();
      }
    }
  }
}


bug.d: In member function ‘localFunction’:
bug.d:12:11: internal compiler error: in expand_expr_real_1, at expr.c:9608
           recurse();
           ^
0x83afc6 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
    ../../src/gcc/expr.c:9603
0x8385b0 expand_expr
    ../../src/gcc/expr.h:254
0x8385b0 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
    ../../src/gcc/expr.c:9904
0x837c47 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
    ../../src/gcc/expr.c:10172
0x842596 store_expr_with_bounds(tree_node*, rtx_def*, int, bool, tree_node*)
    ../../src/gcc/expr.c:5382
0x843abc expand_assignment(tree_node*, tree_node*, bool)
    ../../src/gcc/expr.c:5154
0x776037 expand_gimple_stmt_1
    ../../src/gcc/cfgexpand.c:3401
0x776037 expand_gimple_stmt
    ../../src/gcc/cfgexpand.c:3497
0x77a195 expand_gimple_basic_block
    ../../src/gcc/cfgexpand.c:5509
0x77be16 execute
    ../../src/gcc/cfgexpand.c:6127
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.

My version of GDC is:
gdc (Debian 5.1.1-9) 5.1.1 20150602

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20150618/d2233a90/attachment.html>


More information about the D.gnu mailing list