Not sure if this is a DMD or phobos problem, but in the post-2.062.2 github master (using linux, haven't tried on windows), building the phobos docs results in these compiler errors: ----------------------------------------- std/utf.d(1113): Error: found '.' when expecting ';' following return statement std/utf.d(1225): Error: found '.' when expecting ';' following return statement std/utf.d(1226): Error: found 'else' instead of statement std/utf.d(1279): Error: found '.' when expecting ';' following throw statement std/utf.d(1285): Error: found '.' when expecting ';' following throw statement std/utf.d(1562): Error: found '.' when expecting ';' following throw statement std/utf.d(1581): Error: found '.' when expecting ';' following throw statement std/utf.d(1617): Error: found '.' when expecting ';' following throw statement std/utf.d(1632): Error: found '.' when expecting ';' following throw statement std/utf.d(1688): Error: found '.' when expecting ';' following throw statement std/utf.d(1708): Error: found '.' when expecting ';' following throw statement std/utf.d(1771): Error: found '.' when expecting ';' following throw statement std/utf.d(1788): Error: found '.' when expecting ';' following throw statement std/utf.d(1820): Error: found '.' when expecting ';' following throw statement std/regex.d(6675): Error: unexpected ( in declarator std/regex.d(6675): Error: basic type expected, not alias std/regex.d(6675): Error: found 'alias' when expecting ')' std/regex.d(6675): Error: no identifier for declarator isReplaceFunctor(int) std/regex.d(6675): Error: semicolon expected following function declaration std/regex.d(6675): Error: no identifier for declarator fun std/regex.d(6675): Error: semicolon expected, not ')' -----------------------------------------
(In reply to comment #0) > Not sure if this is a DMD or phobos problem, but in the post-2.062.2 github > master (using linux, haven't tried on windows), building the phobos docs > results in these compiler errors: Are you sure you're using git-head DMD when building the docs? The faulting line is: return new UTFException(msg, i).setSequence(sequence[0 .. i]); This syntax (using new Type.method) was introduced in git-head. Try this out: ----- class C { int foo() { return 0; } } void main() { auto x = new C().foo(); } ----- This will fail with a 2.063.2 compiler, but it works in git-head.
I had doubled-checked that, but now that I look again the wrong DMD was indeed being picked up.