Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 255 - ICE on valid code
Summary: ICE on valid code
Status: RESOLVED FIXED
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: 6.x
Hardware: All All
: --- normal
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2017-03-04 18:50 CET by Sebastien Alaiwan
Modified: 2017-03-05 11:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien Alaiwan 2017-03-04 18:50:18 CET
The following program makes GDC crash:

class C3
{
  void f1()
  {
    class C0
    {
      void f2()
      {
        void f0()
        {
          class C0
          {
            void f0()
            {
              f1;
            }
          }
        }
      }
    }
  }
}

$ gdc test.d
test.d: In function ‘f0’:
test.d:15:15: internal compiler error: in get_decl_tree, at d/d-codegen.cc:501
               f1;
               ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
Comment 1 Iain Buclaw 2017-03-04 19:22:13 CET
I think it is obligatory for me to do the following in such situations.

(╯°_°)╯︵ ┻━┻)
Comment 2 Iain Buclaw 2017-03-04 21:59:26 CET
https://github.com/D-Programming-GDC/GDC/pull/410