https://d.puremagic.com/issues/show_bug.cgi?id=11447
Summary: Closure provide bogus values Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: deadal...@gmail.com --- Comment #0 from deadalnix <deadal...@gmail.com> 2013-11-05 11:45:36 PST --- Created an attachment (id=1287) Full source code. Executive summary, full code in the archive attached. auto instanciateFromResolvedArgs(Location , Template t, TemplateArgument[] args) { static Template gladeulfeurah; gladeulfeurah = t; string id = args.map!( ({ }, delegate string(identified) { assert(t is gladeulfeurah, "tagazok"); assert(0); }) ).join; } Here, assert(t is gladeulfeurah, "tagazok") fails, when it should succeeed. Significant part of SDC test suite fail due to this bug (SDC crashes as a result). To compile what is provided in the archive : make DMD=PATH_TO_DMD_MASTER Run with : LD_LIBRARY_PATH=PATH_TO_PHOBOS_MASTER ./fail The whole source code to trigger the error is 3 source file, so it isn't that big. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------