Thread overview
balancedParens is not nothrow bug, is this known?
Nov 08, 2013
Gary Willoughby
Nov 08, 2013
Gary Willoughby
Nov 08, 2013
Gary Willoughby
Nov 08, 2013
Gary Willoughby
Nov 08, 2013
simendsjo
Nov 08, 2013
bearophile
November 08, 2013
import std.path;

void main(string[] args)
{
	globMatch("foo.bar", "*");
}

compile with: dmd -profile test.d

Error:

/usr/share/dmd/src/phobos/std/path.d(2187): Error: balancedParens is not nothrow
/usr/share/dmd/src/phobos/std/path.d(2188): Error: balancedParens is not nothrow

a). Is this bug known?
b). Is this fixed in the latest release, i'm using 2.063.2.
November 08, 2013
On Friday, 8 November 2013 at 14:07:38 UTC, Gary Willoughby wrote:
> import std.path;
>
> void main(string[] args)
> {
> 	globMatch("foo.bar", "*");
> }
>
> compile with: dmd -profile test.d
>
> Error:
>
> /usr/share/dmd/src/phobos/std/path.d(2187): Error: balancedParens is not nothrow
> /usr/share/dmd/src/phobos/std/path.d(2188): Error: balancedParens is not nothrow
>
> a). Is this bug known?
> b). Is this fixed in the latest release, i'm using 2.063.2.

Found it: https://d.puremagic.com/issues/show_bug.cgi?id=10295
November 08, 2013
On Friday, 8 November 2013 at 14:15:05 UTC, Gary Willoughby wrote:
> Found it: https://d.puremagic.com/issues/show_bug.cgi?id=10295

With that said, anyone have any idea when this is gonna get fixed? Otherwise the profiler is useless for me.
November 08, 2013
On Friday, 8 November 2013 at 14:17:03 UTC, Gary Willoughby wrote:
> With that said, anyone have any idea when this is gonna get fixed? Otherwise the profiler is useless for me.

In fact i might give it a shot.
November 08, 2013
On Friday, 8 November 2013 at 14:07:38 UTC, Gary Willoughby wrote:
> import std.path;
>
> void main(string[] args)
> {
> 	globMatch("foo.bar", "*");
> }
>
> compile with: dmd -profile test.d
>
> Error:
>
> /usr/share/dmd/src/phobos/std/path.d(2187): Error: balancedParens is not nothrow
> /usr/share/dmd/src/phobos/std/path.d(2188): Error: balancedParens is not nothrow
>
> a). Is this bug known?
> b). Is this fixed in the latest release, i'm using 2.063.2.

Can it be nothrow? It might encounter unicode exceptions.
November 08, 2013
simendsjo:

> Can it be nothrow? It might encounter unicode exceptions.

I think -profile should not influence the exception tree analysis. So it seems a bug. And there are probably some dupes:
https://d.puremagic.com/issues/buglist.cgi?quicksearch=profile+nothrow

Bye,
bearophile