[Issue 7046] New: CTFE: append null does nothing
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Dec  1 18:08:43 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7046
           Summary: CTFE: append null does nothing
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: destructionator at gmail.com
--- Comment #0 from Adam D. Ruppe <destructionator at gmail.com> 2011-12-01 18:07:38 PST ---
string[] test() {
    string[] ret;
    ret ~= null;
    ret ~= null;
    assert(ret.length == 2); // fails
    return ret;
}
void main() {
    enum ctfe = test();
}
===
test90.d(7): Error: assert(ret.length == 2u) failed
test90.d(12):        called from here: a()
-- 
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