http://d.puremagic.com/issues/show_bug.cgi?id=5396
Summary: Invalid code with nested functions in CTFE Product: D Version: D1 & D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: rob...@octarineparrot.com --- Comment #0 from Robert Clipsham <rob...@octarineparrot.com> 2011-01-01 18:54:57 GMT --- The following code: ---- void outer(bool b) { string inner() { if (b) { return "true"; } else { return "false"; } } pragma(msg, inner()); } ---- Compiles and evaluates without error, despite the dependence on the runtime value b. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------