Summary: std.path.globMatch throws wrong assertion
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos

--- Comment #0 from Rainer Schuetze <> 2011-09-09 03:28:35 
PDT ---
import std.path;

void main()
    globMatch("a.di", "*.d");

asserts with

core.exception.asserter...@std.path(2239): Assertion failure

The same happens when using fnmatch instead of globMatch. The problem is a
wrong assert at the end of both functions:
    assert(ni >= path.length);

The wrong assert has been there before, but was actually never executed because
it was built into the runtime library in release mode only. Now that the
functions are templates, code generation moved to the user project, so the
asserts can actually trigger.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to