gdc for D1 on x86_64

Iain Buclaw ibuclaw at ubuntu.com
Sun Oct 17 12:10:09 PDT 2010


== Quote from "Jérôme M. Berger" (jeberger at free.fr)'s article
> This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
> --------------enig4343E2F2AF5496438B0DC11D
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
> 	I'm not sure if it is related, but the following code prints "NOK":
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D8<-----------=
> ---------
> import std.stdio;
> import std.regexp;
> void main()
> {
>    auto expr =3D new RegExp ("^a*\\[$", "g");
>    if (expr.test ("["))
>       writefln ("OK");
>    else
>       writefln ("NOK");
> }
> -------------------->8=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> =3D=3D=3D
> 	Removing the "a*" from the regexp or replacing the square bracket
> with "b" causes it to print "OK". There are other cases where it
> will fail, but all seem to involve a backslash in the expression.
> 	This used to work with gdc two years ago and it works with dmd 1.064.
> =3D=3D> gdc --version
> gdc (GCC) 4.4.5
> Copyright (C) 2010 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> =3D=3D> uname -a
> Linux wraith 2.6.35-ARCH #1 SMP PREEMPT Wed Sep 29 08:45:18 CEST
> 2010 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
> AuthenticAMD GNU/Linux
> 		Jerome
> --=20

It worked up until the 1.064 Phobos merge it seems. The current changeset should
have that fixed now, though is probably a sign that should really have more 64bit
testers for GDC.

Regards
Iain


More information about the D.gnu mailing list