www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10295] New: nothrow problem in balancedParens called by std.path.globMatch precondition

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10295

           Summary: nothrow problem in balancedParens called by
                    std.path.globMatch precondition
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-06-07 17:31:54 PDT ---
Problem found by Anthony Goins in D.learn.


import std.path: globMatch;
void main() {
    assert(globMatch("foo.bar", "*"));
}


dmd 2.064alpha, the problem is visible only compiling with "-profile":

...\src\phobos\std\path.d(2187): Error: balancedParens is not nothrow
...\src\phobos\std\path.d(2188): Error: balancedParens is not nothrow

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 07 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10295


NCrashed gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |NCrashed gmail.com


--- Comment #1 from NCrashed gmail.com 2013-06-10 04:14:23 PDT ---
also fails:
..\..\src\phobos\std\encoding.d(953): Error: canEncode is not nothrow

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 10 2013