[Issue 8250] dirEntries fails to generate file list when compiled with -inline
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 21 21:43:22 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8250
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> 2012-12-21 21:43:20 PST ---
Full test case:
---
import std.file;
void main()
{
mkdir("test8250");
scope(exit) rmdirRecurse("test8250");
write("test8250/a.txt", "test");
bool found;
auto dFiles = dirEntries("test8250/", "*.txt", SpanMode.shallow);
foreach (d; dFiles)
if (d.name == "test8250/a.txt")
found = true;
assert(found, "Can't find a.txt");
}
---
Succeeds with: dmd -run bug8250.d
Fails with: dmd -inline -run bug8250.d
Will attempt to reduce Phobos dependency and refile.
--
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