www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23202] New: assigning class.tupleof with a string segfaults

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

          Issue ID: 23202
           Summary: assigning class.tupleof with a string segfaults at
                    runtime, also with  safe
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: d.bugs webfreak.org

Example code:

```
 safe:

class S
{
    string str;
}

void main()
{
    auto s = S.init.tupleof;
}
```

--
Jun 21 2022