[Issue 24356] goto case label not correctly generated by CTFE

2024-01-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24356 --- Comment #1 from Carl Sturtivant --- Created attachment 1904 --> https://issues.dlang.org/attachment.cgi?id=1904&action=edit Work around for goto case CTFE bug Shows that goto case does work with the computed label. --

[Issue 24356] New: goto case label not correctly generated by CTFE

2024-01-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24356 Issue ID: 24356 Summary: goto case label not correctly generated by CTFE Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

[Issue 24355] Slice copy with static arrays incorrect bounds checking

2024-01-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24355 --- Comment #2 from ryuukk_ --- I expect the same as: ``` void main() { char[32] id = "hello"; } ``` left: static array right: slice result: slice -> copy -> [0 .. slice.length] --

[Issue 24355] Slice copy with static arrays incorrect bounds checking

2024-01-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24355 --- Comment #1 from anonymous4 --- In case 1 it's unclear what you want, it can be id[0..6]=str[0..6] or id[0..6]=str[0..6],id[6..12]=str[0..6],... - pattern copy. --

[Issue 24343] Read only data used to initialize objects that are mostly zero

2024-01-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24343 --- Comment #1 from anonymous4 --- TypeInfo could have a member --- byte pattern; --- so that struct S { char[100] x; } (sockaddr_un?) could still be initialized with memset. --

[Issue 24355] Slice copy with static arrays incorrect bounds checking

2024-01-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24355 ryuukk_ changed: What|Removed |Added Summary|Slice copy with static |Slice copy with static |arrays i

[Issue 24355] New: Slice copy with static arrays incorrect of bounds checking

2024-01-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24355 Issue ID: 24355 Summary: Slice copy with static arrays incorrect of bounds checking Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW