www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19704] New: Segmentation fault in DMD

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

          Issue ID: 19704
           Summary: Segmentation fault in DMD
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: porton narod.ru

$ dmd --version
DMD64 D Compiler v2.084.1
Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
written by Walter Bright
$ dmd -unittest -c test.d 
test.d(14): Error: type int has no value
Segmentation fault (core dumped)


module test;

private string ProviderParamsCode(Fields...)() {
    alias Types = stride!([Fields], 2);
}

mixin ProviderParamsCode!(int, "x", float, "y");

--
Feb 26 2019