www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17719] New: compiler generates code for CTFE-only templates

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

          Issue ID: 17719
           Summary: compiler generates code for CTFE-only templates
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

Quite a few template functions that are only used as CTFE helpers end up in
final binaries, unnecessarily slowing down compilation and blowing up object
sizes.
Would be great if we could dismiss any instantions that are not used during
runtime.

--
Aug 03