[Issue 9238] Support rvalue references

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9238 --- Comment #8 from Kenji Hara 2012-12-29 23:39:37 PST --- (In reply to comment #7) > And what's the problem with leaving auto ref as it is with templated functions In recent, I have used `auto ref` in std.algorithm.forward. Yes, ideally we c

[Issue 9099] core.atomic.atomicLoad() cannot handle non-POD structs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9099 --- Comment #7 from github-bugzi...@puremagic.com 2012-12-29 23:31:44 PST --- Commit pushed to staging at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/878a183a51825ea5dce25f4289a8e

[Issue 9099] core.atomic.atomicLoad() cannot handle non-POD structs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9099 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 9099] core.atomic.atomicLoad() cannot handle non-POD structs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9099 --- Comment #6 from github-bugzi...@puremagic.com 2012-12-29 23:22:22 PST --- Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/a15d228ed0c1a3bfb5bd05ec1d4918

[Issue 9238] Support rvalue references

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9238 --- Comment #7 from Jonathan M Davis 2012-12-29 23:00:50 PST --- > We cannot make "rvalue references" with template functions, if we use `auto ref`. And what's the problem with leaving auto ref as it is with templated functions and then makin

[Issue 9244] union containing pointers not allowed

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9244 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #1

[Issue 9243] Order locals to prevent buffer overflow attacks

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9243 --- Comment #4 from Walter Bright 2012-12-29 21:59:11 PST --- (In reply to comment #3) > (In reply to comment #2) > > > Dmd already does this using graph coloring. I guess dmd is advanced? :-) > > Despite in some cases DMD compiles in a sub-

[Issue 9244] New: union containing pointers not allowed

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9244 Summary: union containing pointers not allowed Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component

[Issue 9243] Order locals to prevent buffer overflow attacks

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9243 --- Comment #3 from bearophile_h...@eml.cc 2012-12-29 20:33:19 PST --- (In reply to comment #2) > Dmd already does this using graph coloring. I guess dmd is advanced? :-) Despite in some cases DMD compiles in a sub-optimal way compared to LDC/

[Issue 9238] Support rvalue references

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9238 --- Comment #6 from Kenji Hara 2012-12-29 20:24:29 PST --- (In reply to comment #5) A serious problem is: We cannot make "rvalue references" with template functions, if we use `auto ref`. -- Configure issuemail: http://d.puremagic.com/issues

[Issue 9243] Order locals to prevent buffer overflow attacks

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9243 --- Comment #2 from Walter Bright 2012-12-29 18:30:18 PST --- (In reply to comment #1) > (In reply to comment #0) > > but this enhancement has zero cost, so why not? > > Advanced compilers do two things: > - If in a function you have nested s

[Issue 9242] Add stack smashing code to flush out heisenbugs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9242 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #3

[Issue 9242] Add stack smashing code to flush out heisenbugs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9242 --- Comment #2 from bearophile_h...@eml.cc 2012-12-29 18:02:38 PST --- (In reply to comment #1) > Maybe it's better to name/syntax it differently, to make it more future-proof > in case we'll want to add other related runtime safeties. A simpl

[Issue 5570] 64 bit C ABI not followed for passing structs and complex numbers as function parameters

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5570 --- Comment #33 from David Nadlinger 2012-12-29 18:04:07 PST --- I added issue 9239 as a blocker of this, as it also concerns the System V x86-64 ABI. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You

[Issue 9243] Order locals to prevent buffer overflow attacks

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9243 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com

[Issue 9243] New: Order locals to prevent buffer overflow attacks

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9243 Summary: Order locals to prevent buffer overflow attacks Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2

[Issue 9242] Add stack smashing code to flush out heisenbugs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9242 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com

[Issue 9242] New: Add stack smashing code to flush out heisenbugs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9242 Summary: Add stack smashing code to flush out heisenbugs Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2

[Issue 9237] add __traits(isPOD, ...)

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9237 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 9237] add __traits(isPOD, ...)

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9237 --- Comment #3 from github-bugzi...@puremagic.com 2012-12-29 13:26:14 PST --- Commit pushed to staging at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5781626d3cdd8ec29216047a510decf6919e256

[Issue 9237] add __traits(isPOD, ...)

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9237 --- Comment #2 from github-bugzi...@puremagic.com 2012-12-29 13:25:18 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d53a0063235604a638b32de4d5ad7a24bba6fea

[Issue 9238] Support rvalue references

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9238 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #5

[Issue 9241] New: 2.061: Property call error message disappeared

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9241 Summary: 2.061: Property call error message disappeared Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Comp

[Issue 9218] [2.061] Correct signature of struct opCmp no longer accepts enum structs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9218 --- Comment #9 from siegelords_ab...@yahoo.com 2012-12-29 09:13:28 PST --- Ok, that workabout is not quite complete (perhaps this is a different bug now?). While it solves the code in the original comment, this code doesn't work: struct A {

[Issue 9240] New: (Regression: 2.058) non-const does not implicitly convert to const

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9240 Summary: (Regression: 2.058) non-const does not implicitly convert to const Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: reg

[Issue 9218] [2.061] Correct signature of struct opCmp no longer accepts enum structs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9218 --- Comment #8 from SomeDude 2012-12-29 08:11:17 PST --- (In reply to comment #4) > (In reply to comment #3) > > Tested on DPaste, this code runs successfully with DMD 2.x Git (UDA beta > > build) > > (supposedly updated daily) both in 32 and

[Issue 6715] Using a custom pow function for ^^

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6715 --- Comment #3 from siegelords_ab...@yahoo.com 2012-12-29 08:08:04 PST --- (In reply to comment #2) > (In reply to comment #0) > > > Can we have ^^ rewritten into a simple pow? > > Note: I think that currently a^^b is optimized in some special

[Issue 9218] [2.061] Correct signature of struct opCmp no longer accepts enum structs

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9218 --- Comment #7 from siegelords_ab...@yahoo.com 2012-12-29 08:05:49 PST --- I worked around this for now by adding this overload: int opCmp(const A a) const { return opCmp(a); } This seems to work because the compiler prefers the const ref

[Issue 9238] Support rvalue references

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9238 --- Comment #4 from Kenji Hara 2012-12-29 08:04:06 PST --- I'd like to propose using `in ref` rather than `auto ref` for the purpose. Reasons: 1. `in ref` implies `const scope ref`. If the reference binds temporary rvalue, its address must

[Issue 9238] Support rvalue references

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9238 --- Comment #2 from Andrej Mitrovic 2012-12-29 07:36:31 PST --- (In reply to comment #1) > Does it really block Issue 9218? We've had a discussion in the forums recently > to make `auto ref` a non-template by making the compiler convert this c

[Issue 9238] Support rvalue references

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9238 --- Comment #3 from Andrej Mitrovic 2012-12-29 07:37:52 PST --- (In reply to comment #2) > (In reply to comment #1) > > Does it really block Issue 9218? We've had a discussion in the forums > > recently > > to make `auto ref` a non-template b

[Issue 9238] Support rvalue references

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9238 Andrej Mitrovic changed: What|Removed |Added CC||andrej.mitrov...@gmail.com --- Comme

[Issue 9211] regex lookahead, (?=(\d\d\d)+\b) failed

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9211 --- Comment #3 from github-bugzi...@puremagic.com 2012-12-29 06:37:19 PST --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/4a08974927ffd467ba05a20f42c72a5fb

[Issue 7105] relax inout rules

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7105 --- Comment #9 from github-bugzi...@puremagic.com 2012-12-29 01:42:43 PST --- Commit pushed to master at https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/c

[Issue 8832] Segfault when accessing range returned by function that has delegate referencing local variables

2012-12-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8832 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #