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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 11 01:20:41 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8991



--- Comment #2 from Dmitry Olshansky <dmitry.olsh at gmail.com> 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).

Yeah, problem is: 
I want __ctfe branch to just do a copy and normal branch to move via memcpy and
other black magic.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list