[Issue 19179] extern(C++) small-struct by-val uses wrong ABI

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19179 Walter Bright changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Issue 19662] x86_64: Different code output when compiling with inline/boundscheck on/off

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19662 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #5 from Dlang Bot --- @WalterB

[Issue 21374] New: [ICE] cod2.d(4675): Assertion failure compiling druntime with -fPIE

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21374 Issue ID: 21374 Summary: [ICE] cod2.d(4675): Assertion failure compiling druntime with -fPIE Product: D Version: D2 Hardware: x86 OS: Linux Status: NE

[Issue 21375] New: phobos: Error: cannot directly load global variable constants with PIC or PIE code

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21375 Issue ID: 21375 Summary: phobos: Error: cannot directly load global variable constants with PIC or PIE code Product: D Version: D2 Hardware: x86 OS: Linux

[Issue 21374] [ICE] cod2.d(4675): Assertion failure compiling druntime with -fPIE

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21374 Iain Buclaw changed: What|Removed |Added Blocks||21375 Referenced Issues: https://issues.dlan

[Issue 21375] phobos: Error: cannot directly load global variable constants with PIC or PIE code

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21375 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org Depends on|

[Issue 21376] New: [x86-only] Returning 32-bit floats have wrong precision

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21376 Issue ID: 21376 Summary: [x86-only] Returning 32-bit floats have wrong precision Product: D Version: D2 Hardware: x86 OS: Linux Status: NEW

[Issue 21376] [x86-only] Returning 32-bit floats have wrong precision

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21376 Iain Buclaw changed: What|Removed |Added Keywords||wrong-code --

[Issue 21376] [x86-only] Returning 32-bit floats have wrong precision

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21376 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #1 from Iai

[Issue 21374] [ICE] cod2.d(4675): Assertion failure compiling druntime with -fPIE

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21374 Iain Buclaw changed: What|Removed |Added Keywords||ice-on-valid-code CC|

[Issue 21375] phobos: Error: cannot directly load global variable constants with PIC or PIE code

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21375 Iain Buclaw changed: What|Removed |Added Keywords||rejects-valid --

[Issue 21376] [x86-only] Returning 32-bit floats have wrong precision

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21376 --- Comment #2 from Iain Buclaw --- Assembly dump of return statement in `float abs()` - dmd x86: call hypotFeeZe add$0x8,%esp leave ret$0x8 --

[Issue 21376] [x86-only] Returning 32-bit floats have wrong precision

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21376 --- Comment #3 from Iain Buclaw --- hypot() isn't necessary, so that leaves just the lack of fstp/fld after calling fsqrt. --- import core.math; float abs(float re, float im) { float u = fabs(re); float v = fabs(im); return sqrt(u*u + v

[Issue 21376] [x86-only] Returning 32-bit floats have wrong precision

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21376 --- Comment #4 from Iain Buclaw --- (In reply to Iain Buclaw from comment #3) > return sqrt(u*u + v*v); - dmd x86: movss %xmm0,-0x18(%ebp) flds -0x18(%ebp) fmul %st(0),%st

[Issue 20980] std.bigint.BigInt: special case x & non-negative int to avoid unnecessary allocation

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

[Issue 21349] copy and postblit constructors aren't compatible

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #7 from Razv

[Issue 21349] copy and postblit constructors aren't compatible

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 --- Comment #8 from RazvanN --- (In reply to Paul Backus from comment #5) > When an aggregate has both old and new style members, the compiler generates > both a copy constructor and a postblit, and the postblit takes precedence. > > I agree that th

[Issue 21349] copy and postblit constructors aren't compatible

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 --- Comment #9 from RazvanN --- (In reply to Илья Ярошенко from comment #4) > btw, I don't see whare spec says that an aggregate can't hold both old and > new style members > > struct C > { > SOld sOld; > SNew sNew; > } > > void main() > {

[Issue 21349] copy and postblit constructors aren't compatible

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 --- Comment #10 from RazvanN --- (In reply to Paul Backus from comment #2) > This is an enhancement request, not a bug. Per the language spec: > > > For backward compatibility reasons, a struct that defines both a copy > > constructor and a postblit

[Issue 21349] copy and postblit constructors aren't compatible

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 --- Comment #11 from RazvanN --- I am inclined to close this as INVALID as the issue is easy to fix by disabling the postblit in C, however, I am going to wait for further objections. --

[Issue 21189] Plain Old Data and copy constructors

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21189 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #1 from Razv

[Issue 21189] Plain Old Data and copy constructors

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21189 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #2 from Dlang Bot --- @RazvanN

[Issue 20965] Implicitly generated postblit overrides disabled copy ctor

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20965 --- Comment #4 from RazvanN --- (In reply to Stanislav Blinov from comment #3) > (In reply to RazvanN from comment #1) > > > @disable this(this); > > @disable this(ref typeof(this)); > > > > You don't have to reflect on any code this way. > > If I

[Issue 20965] Implicitly generated postblit overrides disabled copy ctor

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20965 --- Comment #5 from RazvanN --- I will make a PR to try and fix this and see what happens. --

[Issue 21189] Plain Old Data and copy constructors

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

[Issue 21377] New: Unclear error message "delegate __lambda cannot be struct members"

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21377 Issue ID: 21377 Summary: Unclear error message "delegate __lambda cannot be struct members" Product: D Version: D2 Hardware: x86_64 OS: Windows Status

[Issue 21377] Unclear error message "delegate __lambda cannot be struct members"

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21377 --- Comment #1 from bradley.cha...@gmail.com --- Relevant quote from the forums: "The actual problem is that the compiler isn't able to figure out the type of the lambda you've provided. If you change the argument to `(string str)`, it'll work. The r

[Issue 20965] Implicitly generated postblit overrides disabled copy ctor

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20965 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #6 from Dlang Bot --- @RazvanN

[Issue 20714] Struct with postblitting member does not call it's copy constructor

2020-11-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20714 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #2 from Dlang Bot --- @RazvanN

[Issue 20714] Struct with postblitting member does not call it's copy constructor

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

[Issue 20965] Implicitly generated postblit overrides disabled copy ctor

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