D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10295 - [profile+nothrow] nothrow problem in balancedParens called by std.path.globMatch precondition
Summary: [profile+nothrow] nothrow problem in balancedParens called by std.path.globMa...
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2013-06-07 17:31 UTC by bearophile_hugs
Modified: 2020-03-21 03:56 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2013-06-07 17:31:54 UTC
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 NCrashed 2013-06-10 04:14:23 UTC
also fails:
..\..\src\phobos\std\encoding.d(953): Error: canEncode is not nothrow