[Issue 8991] adding a __ctfe branch with return to a function breaks NRVO

2012-11-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8991 Maxim Fomin changed: What|Removed |Added CC||ma...@maxim-fomin.ru --- Comment #1 from

[Issue 8991] adding a __ctfe branch with return to a function breaks NRVO

2012-11-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8991 --- Comment #2 from Dmitry Olshansky 2012-11-11 01:20:32 PST --- (In reply to comment #1) > It seems that dmd is confused by return statement within if(__ctfe) block: > comment it out and you will get desired behavior (tested on 2.060nix). Ye

[Issue 8991] adding a __ctfe branch with return to a function breaks NRVO

2012-11-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8991 --- Comment #3 from Don 2012-11-14 01:08:32 PST --- I have no idea why this evil hacky code exists in Phobos, I cannot see how it can possibly be correct. If it bypasses postblit, surely that's wrong. If it is faster to use memcpy(), that's a c

[Issue 8991] adding a __ctfe branch with return to a function breaks NRVO

2012-11-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8991 --- Comment #4 from Dmitry Olshansky 2012-11-14 06:42:57 PST --- (In reply to comment #3) >I have no idea why this evil hacky code exists in Phobos, I cannot see how it >can possibly be correct. If it bypasses postblit, surely that's wrong. >I

[Issue 8991] adding a __ctfe branch with return to a function breaks NRVO

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8991 Iain Buclaw changed: What|Removed |Added Priority|P2 |P3 --