[Issue 11824] A stack variable escaping problem in CTFE Phobos code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 3 21:52:10 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11824
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
Component|Phobos |DMD
Platform|x86 |All
OS/Version|Windows |All
--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2014-02-03 21:52:04 PST ---
(In reply to comment #4)
> I can work *around* the issue, but there is a CTFE bug in there to begin with.
>
[snip]
> To be perfectly pedantic: a happens to be a stack variable, yes, but *not*
> inside "getAddr" 's scope. So this should not be rejected during CTFE I think.
Yes, this is a compiler bug.
https://github.com/D-Programming-Language/dmd/pull/3204
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list