Bug 10295 – [profile+nothrow] nothrow problem in balancedParens called by std.path.globMatch precondition
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-07T17:31:54Z
Last change time
2020-03-21T03:56:32Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2013-06-07T17:31:54Z
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
Comment #1 by NCrashed — 2013-06-10T04:14:23Z
also fails:
..\..\src\phobos\std\encoding.d(953): Error: canEncode is not nothrow