www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15083] New: declaring a variable, cannot access frame pointer

https://issues.dlang.org/show_bug.cgi?id=15083

          Issue ID: 15083
           Summary: declaring a variable, cannot access frame pointer
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

This uses phobos, but I'm pretty sure typeof should work here so it's a dmd
bug.

import std.file;

void file_test(string path, string filetype, string term){
    typeof(dirEntries(path, filetype, SpanMode.depth)) files;
}

Error: cannot access frame pointer of std.file.dirEntries.FilterResult!(f,
DirIterator).FilterResult

--
Sep 18 2015