Thread overview
[dmd-internals] dmd commit, revision 527
Jun 09, 2010
dsource.org
Jun 09, 2010
Walter Bright
Jun 09, 2010
Masahiro Nakagawa
June 09, 2010
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

June 08, 2010

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
>
> 

This one took all day to find. grrr!
June 09, 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