[Issue 7655] New: scope class instantiations not supported in CTFE
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Mar  6 04:48:04 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7655
           Summary: scope class instantiations not supported in CTFE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: CTFE
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2012-03-06 04:48:05 PST ---
cat > bug.d << CODE
int foo()
{
    scope obj = new Object;
    return 1;
}
enum v = foo();
CODE
dmd -c bug
--------
Error: Cannot interpret delete obj at compile time
--------
-- 
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