[Issue 15869] RVO can overwrite argument

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15869 --- Comment #7 from Yuxuan Shui --- > As a result, is technically use-before-initialization and invalid. If that's the case, this shouldn't compile: struct Set { @disable this(this); int value = 0; } @safe Set

[Issue 18568] partially overlapping assignments have undefined behavior but are accepted in @safe code

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18568 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/e84d1e91eb6572b7cf81f01a486c7a54484c fix Issue 18568 - partially overlapping

[Issue 15869] RVO can overwrite argument

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15869 FeepingCreature changed: What|Removed |Added CC|

[Issue 7804] Cannot alias __traits directly

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7804 Basile B. changed: What|Removed |Added Keywords|rejects-valid | Severity|normal

[Issue 15869] RVO can overwrite argument

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15869 Ketmar Dark changed: What|Removed |Added CC|

[Issue 18611] New: struct initializer works for dynamic arrays but not associative arrays

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18611 Issue ID: 18611 Summary: struct initializer works for dynamic arrays but not associative arrays Product: D Version: D2 Hardware: All OS: All Status:

[Issue 18417] Make const and immutable postblit constructors illegal

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18417 --- Comment #6 from RazvanN --- PR : https://github.com/dlang/dmd/pull/8032 The PR makes it illegal to declare a postblit const/immutable/shared, however, it is still possible to make a postblit const/immutable/shared by

[Issue 18613] New: Documentation: recommended construction/destruction patterns for manual memory management

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18613 Issue ID: 18613 Summary: Documentation: recommended construction/destruction patterns for manual memory management Product: D Version: D2 Hardware: All OS: All

[Issue 18615] Rebindable!A doesn't use class A's opEquals (returns a is b instead)

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18615 greenify changed: What|Removed |Added CC||greeen...@gmail.com ---

[Issue 18540] [scope] incorrect "escapes a reference to parameter e, perhaps annotate with return"

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18540 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18554] `tupleof` ignoring `private` shouldn't be accepted in @safe code

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18554 Walter Bright changed: What|Removed |Added CC|

[Issue 18615] New: Rebindable!A doesn't use class A's opEquals (returns a is b instead)

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18615 Issue ID: 18615 Summary: Rebindable!A doesn't use class A's opEquals (returns a is b instead) Product: D Version: D2 Hardware: x86_64 OS: Linux

[Issue 18484] [dip1000] Subtype allows reference to escape with implicit casting

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18484 Walter Bright changed: What|Removed |Added CC|

[Issue 18484] [dip1000] Subtype allows reference to escape with implicit casting

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18484 --- Comment #2 from Walter Bright --- https://github.com/dlang/dmd/pull/8036 --

[Issue 18592] Associative array assignment with a destructor should be @safe if the destructor is @safe

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18592 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18614] New: dmd source uses bool return inconsistently (true should mean success)

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18614 Issue ID: 18614 Summary: dmd source uses bool return inconsistently (true should mean success) Product: D Version: D2 Hardware: x86 OS: All Status:

[Issue 18612] New: missing debug info: frame locals (eg lldb fr v) not shown with dmd (works with ldc)

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18612 Issue ID: 18612 Summary: missing debug info: frame locals (eg lldb fr v) not shown with dmd (works with ldc) Product: D Version: D2 Hardware: x86 OS: Mac OS X

[Issue 7804] Cannot alias __traits directly

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7804 Basile B. changed: What|Removed |Added Keywords||pull --- Comment #11 from

[Issue 18172] std.getopt should allow taking parameters by `ref` (like std.format.formattedRead), s.t. it can be used in @safe

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18172 Jack Stouffer changed: What|Removed |Added Keywords||safe

[Issue 18172] std.getopt should allow taking parameters by `ref` (like std.format.formattedRead), s.t. it can be used in @safe

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18172 --- Comment #2 from Jack Stouffer --- Actually the problem is way worse. Consider string file1 = "file.dat"; string file2 = "file2.dat"; getopt(args, "file1", "info about arg", file1, "file2", file2);

[Issue 18610] New: dman missing in 2.079 Windows package

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18610 Issue ID: 18610 Summary: dman missing in 2.079 Windows package Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: trivial

[Issue 18417] Make const and immutable postblit constructors illegal

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18417 --- Comment #8 from Jonathan M Davis --- (In reply to RazvanN from comment #6) > PR : https://github.com/dlang/dmd/pull/8032 > > The PR makes it illegal to declare a postblit const/immutable/shared, > however, > it is

[Issue 18609] New: `is` expression identifier accessible outside `static if`

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18609 Issue ID: 18609 Summary: `is` expression identifier accessible outside `static if` Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW

[Issue 18417] Make const and immutable postblit constructors illegal

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18417 --- Comment #7 from Radu Racariu --- As Steven Schveighoffer asked, how do you see an immutable refcounted struct working after this change? Consider this simplified example:

[Issue 15869] RVO can overwrite argument

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15869 --- Comment #8 from FeepingCreature --- Agreed. --

[Issue 18172] std.getopt should allow taking parameters by `ref` (like std.format.formattedRead), s.t. it can be used in @safe

2018-03-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18172 Jonathan M Davis changed: What|Removed |Added CC|