Bug 10856 – [2.064 git-head] Errors building phobos docs

Status
RESOLVED
Resolution
INVALID
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-19T15:05:00Z
Last change time
2015-06-09T05:14:41Z
Assigned to
nobody
Creator
bus_dbugzilla

Comments

Comment #0 by bus_dbugzilla — 2013-08-19T15:05:24Z
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 ')' -----------------------------------------
Comment #1 by andrej.mitrovich — 2013-08-25T05:58:15Z
(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.
Comment #2 by bus_dbugzilla — 2013-08-25T22:09:17Z
I had doubled-checked that, but now that I look again the wrong DMD was indeed being picked up.