www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17316] New: DMD crashes on large code generating app

https://issues.dlang.org/show_bug.cgi?id=17316

          Issue ID: 17316
           Summary: DMD crashes on large code generating app
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: phreon111 gmail.com

The source code that causes the problems can be found here

https://github.com/IllusionSoftware/COM2D

One can configure it in different ways in main.d by choosing the various
Interfaces enum. The larger the more code is produced and the more likely an
error.

One can comment out the pragma and even the mixin and it have it only write to
the file(in the static this) and it will generally still crash. It sometimes
crashes optilink also. 

Getting the code to run will the largest interfaces enum(ALL) is the goal which
hasn't been achievable yet due to unknown crashes or out of memory(using x64
ver of dmd. 

The code produces a set of D class as a string and does not do anything that
should cause a crash.

--
Apr 10 2017