[Issue 23412] New: void init member detection does not account for static arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 14 11:40:43 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23412
Issue ID: 23412
Summary: void init member detection does not account for static
arrays
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: safe
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dkorpel at live.nl
```D
struct S
{
int* x = void;
}
void main() @safe
{
S s0; // error
S[1] s1; // no error, but should error as well
}
```
--
More information about the Digitalmars-d-bugs
mailing list