[dmd-internals] dmd commit, revision 527

Masahiro Nakagawa repeatedly at gmail.com
Wed Jun 9 04:15:25 PDT 2010


On Wed, 09 Jun 2010 13:48:30 +0900, dsource.org <noreply at dsource.org>  
wrote:

> dmd commit, revision 527
>
>
> user: walter
>
> msg:
> bugzilla 4003 The result changes only with the order of source files.
>
> http://www.dsource.org/projects/dmd/changeset/527
>

g++ can't compile mtype.c (g++ 4.2.1 on Mac OS X 10.6).
The cause is a lack of parenthesis.

Index: mtype.c
===================================================================
--- mtype.c	(revision 527)
+++ mtype.c	(working copy)
@@ -7689,7 +7689,7 @@
          args->push(arg);
      }

-    Type *t = new TypeTuple(args)->semantic(loc, sc);
+    Type *t = (new TypeTuple(args))->semantic(loc, sc);
      return t;
  }


Masahiro


More information about the dmd-internals mailing list