[Issue 15062] New: ElementType Causes Abnormally Long Compile Time

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 15 10:37:02 PDT 2015


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

          Issue ID: 15062
           Summary: ElementType Causes Abnormally Long Compile Time
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: monkeyworks12 at hotmail.com

import std.range;
import std.array;
import std.conv;
import std.algorithm;
import std.string;
import std.stdio;

enum Instructions: ushort
{
    add = 123,
    sub = 124,
}

uint[ushort.max] inst;

void initInst()
{
        //Removing this line drastically reduces compile time
    alias InstElem = ElementType!(typeof(inst));
}

void main()
{
}

--


More information about the Digitalmars-d-bugs mailing list