www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 191] New: internal error when nesting class and recursive calls

Date: Thu, 18 Jun 2015 19:38:18 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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

            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 gdcproject.org
          Reporter: sebastien.alaiwan 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 =E2=80=98localFunction=E2=80=99:
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

--=20
You are receiving this mail because:
You are watching all bug changes.
Jun 18 2015