# HG changeset patch # User Eldar Insafutdinov # Date 1284142449 -3600 # Node ID c494af1dba803e6415d4095a086526b9fcf6fbdf # Parent 206db751bd4cf57b1de8f258ef61e0ab0dabbc95 Fixes for dmd 2.037 diff -r 206db751bd4c -r c494af1dba80 dmd/Parser.d --- a/dmd/Parser.d Fri Sep 10 00:27:37 2010 +0100 +++ b/dmd/Parser.d Fri Sep 10 19:14:09 2010 +0100 @@ -3293,7 +3293,7 @@ condition = parseStaticIfCondition(); goto Lcondition; } - if (t.value == TOK.TOKstruct || t.value == TOK.TOKunion || t.value == TOK.TOKclass) + if (tt.value == TOK.TOKstruct || tt.value == TOK.TOKunion || tt.value == TOK.TOKclass) { nextToken(); auto a = parseBlock(); diff -r 206db751bd4c -r c494af1dba80 dmd/TypeFunction.d --- a/dmd/TypeFunction.d Fri Sep 10 00:27:37 2010 +0100 +++ b/dmd/TypeFunction.d Fri Sep 10 19:14:09 2010 +0100 @@ -322,6 +322,7 @@ case TRUST.TRUSTsafe: buf.writestring("Nd"); break; + default: } } // Write argument types