www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19688] New: Default function argument concatenation crashes DMD

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

          Issue ID: 19688
           Summary: Default function argument concatenation crashes DMD
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: feklushkin.denis gmail.com

/++ dub.sdl:
name "ttest"
description "test"
+/

void test(string s = __MODULE__~__FUNCTION__)
{

}

void main()
{
    test();
}

=======
Illegal instruction (core dumped)
dmd failed with exit code 132.

DMD 2.081, 2.084 and nightly is affected

--
Feb 19 2019