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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 10 11:42:27 PST 2012


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


Maxim Fomin <maxim at maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim at maxim-fomin.ru


--- Comment #1 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-11-10 11:42:18 PST ---
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).

-- 
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