Bug 14834 – [REG 2.068-b2] dirEntries with mask stopped working with "-inline -debug"

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-07-26T15:41:00Z
Last change time
2015-07-30T12:05:46Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
gassa

Attachments

IDFilenameSummaryContent-TypeSize
1533example.dexample codetext/plain141

Comments

Comment #0 by gassa — 2015-07-26T15:41:50Z
Created attachment 1533 example code import std.file, std.stdio; void main () { foreach (fileName; dirEntries (".", "*.*", SpanMode.breadth)) { writeln (fileName); } } dmd 2.068-b2 on Windows: 1. "dmd -inline -debug -m32" does not list current directory (output is empty), 2. "dmd -inline -debug -m64" crashes, 3. just "-inline" or "-debug" works fine. With dmd 2.068-b1, all of the above work correctly. Specifying the concrete type ("string fileName" or "DirEntry fileName") in foreach does not seem to affect the outcome.
Comment #1 by k.hara.pg — 2015-07-27T06:14:53Z
Comment #2 by k.hara.pg — 2015-07-27T11:58:51Z
Comment #3 by github-bugzilla — 2015-07-27T22:07:45Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e5e0c3ebb1de765895d7ec0001bfe6e22cedb64f fix Issue 14834 - dirEntries with mask stopped working with "-inline -debug" https://github.com/D-Programming-Language/dmd/commit/d67ef5c3d95e768e1c1258a31dad70a85cc03680 Merge pull request #4839 from 9rnsr/fix14834 [REG2.068-b2] Issue 14834 - dirEntries with mask stopped working with "-inline -debug"
Comment #4 by github-bugzilla — 2015-07-30T12:05:46Z