www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23082] New: stringof of template alias overloaded with

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

          Issue ID: 23082
           Summary: stringof of template alias overloaded with function
                    accessed by trait: segfault.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

$ cat test.d

void foo()() {}
alias bar = foo;
void bar() { }

void main()
{
    __traits(getMember, __traits(parent, main), "bar").stringof;
}

$ dmd test.d

Segmentation fault

--
May 03 2022