[Issue 24187] dmd ImportC: cmathcalls.h(55): Error: illegal type combination

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24187 --- Comment #9 from Walter Bright --- It compiles without error if `Float32` is replaced with `float`. --

[Issue 24187] dmd ImportC: cmathcalls.h(55): Error: illegal type combination

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24187 --- Comment #8 from Walter Bright --- The two lines: extern _Complex _Float32 cacosf32 (_Complex _Float32 __z) __attribute__ ((__nothrow__ , __leaf__)); extern _Complex _Float32 __cacosf32 (_Complex _Float32 __z) __attribute__ ((__nothrow__ ,

[Issue 20920] Typedef!int + Typedef!int => int? is this a typedef overlook?

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20920 --- Comment #5 from mw --- wrong operation, this is for issue #24187 --

[Issue 24187] dmd ImportC: cmathcalls.h(55): Error: illegal type combination

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24187 --- Comment #7 from mw --- Created attachment 1897 --> https://issues.dlang.org/attachment.cgi?id=1897=edit reduced to 2 lines: s2.i --

[Issue 20920] Typedef!int + Typedef!int => int? is this a typedef overlook?

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20920 --- Comment #4 from mw --- Created attachment 1896 --> https://issues.dlang.org/attachment.cgi?id=1896=edit reduced to 2 lines: s2.i --

[Issue 24187] dmd ImportC: cmathcalls.h(55): Error: illegal type combination

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24187 --- Comment #6 from mw --- Haha, I made it: 2 lines! $ cat s2.i extern _Complex _Float32 cacosf32 (_Complex _Float32 __z) __attribute__ ((__nothrow__ , __leaf__)); extern _Complex _Float32 __cacosf32 (_Complex _Float32 __z) __attribute__

[Issue 24193] Incorrect size of unions with bit fields

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24193 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 24208] [DIP1000] Scope pointer can escape via non-scope parameter of pure nested function

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 Paul Backus changed: What|Removed |Added Summary|[DIP1000] Nested function |[DIP1000] Scope pointer can

[Issue 24209] New: static aa initialization of static function variable ICE

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24209 Issue ID: 24209 Summary: static aa initialization of static function variable ICE Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 24193] Incorrect size of unions with bit fields

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24193 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #3 from Dlang Bot ---

[Issue 24193] Incorrect size of unions with bit fields

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24193 --- Comment #2 from Walter Bright --- Not specific to C, it equally affects D. --

[Issue 24193] Incorrect size of unions with bit fields

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24193 Walter Bright changed: What|Removed |Added Summary|A size of unions with |Incorrect size of unions

[Issue 24208] [DIP1000] Nested function can pass scope pointer to non-scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 Paul Backus changed: What|Removed |Added Summary|[DIP1000] Nested function |[DIP1000] Nested function

[Issue 24208] [DIP1000] Nested function can escape scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 --- Comment #3 from Paul Backus --- Disregard previous example, I read the errors wrong. They occur in the function bodies, not at the call site. The parameter of `escape` is not allowed to escape at all if it is `scope`, even `return scope`. --

[Issue 24208] [DIP1000] Nested function can escape scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 --- Comment #2 from Paul Backus --- ...or maybe the problem is that it's being incorrectly inferred as `scope` instead of `return scope`. Another example: --- void main() @safe { int* escaped; void escape1(int* p) @safe {

[Issue 24208] [DIP1000] Nested function can escape scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 Paul Backus changed: What|Removed |Added Summary|[DIP1000] Nested function |[DIP1000] Nested function

[Issue 24208] [DIP1000] Nested function can pass scope pointer to non-scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 --- Comment #1 from Paul Backus --- Actually, it turns out the second function is not necessary: --- void main() @safe { int* escaped; void escape(int* p) @safe { escaped = p; } int n; escape(); assert(escaped

[Issue 24208] [DIP1000] Nested function can pass scope pointer to non-scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 Paul Backus changed: What|Removed |Added Keywords||accepts-invalid, safe --

[Issue 24208] New: [DIP1000] Nested function can pass scope pointer to non-scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 Issue ID: 24208 Summary: [DIP1000] Nested function can pass scope pointer to non-scope parameter Product: D Version: D2 Hardware: All OS: All Status:

[Issue 24207] std.parallelism: AbstractTask private data is inadvertently available

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24207 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 23780] Manual __ctor call can mutate immutable object in @safe code

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23780 --- Comment #2 from Paul Backus --- Unfortunately this will probably be tricky to fix, because a lot of valid code gets lowered to `obj.__ctor` internally by the DMD frontend. --

[Issue 19270] is expression fails with function types

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19270 Basile-z changed: What|Removed |Added CC||b2.t...@gmx.com --- Comment #4 from Basile-z

[Issue 24207] std.parallelism: AbstractTask private data is inadvertently available

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24207 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot ---

[Issue 24207] New: std.parallelism: AbstractTask private data is inadvertently available

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24207 Issue ID: 24207 Summary: std.parallelism: AbstractTask private data is inadvertently available Product: D Version: D2 Hardware: All OS: All Status:

[Issue 19270] is expression fails with function types

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19270 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #3 from Nick

[Issue 24206] New: Can't alias a function type that returns a type with a TypeSuffix

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24206 Issue ID: 24206 Summary: Can't alias a function type that returns a type with a TypeSuffix Product: D Version: D2 Hardware: x86_64 OS: Linux Status:

[Issue 24158] ImportC: enums created from string literal #defines don’t implicitly convert to const(char)* in D.

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24158 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #1

[Issue 24187] dmd ImportC: cmathcalls.h(55): Error: illegal type combination

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24187 --- Comment #5 from Walter Bright --- Thank you. What would be even more helpful would be to cut it down to just what produces the error! --

[Issue 24193] A size of unions with struct and bitfields is incompatible with C

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24193 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #1