[Issue 11447] New: Closure provide bogus values
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Nov  5 11:45:38 PST 2013
    
    
  
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: nobody at puremagic.com
        ReportedBy: deadalnix at gmail.com
--- Comment #0 from deadalnix <deadalnix at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list