D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10856 - [2.064 git-head] Errors building phobos docs
Summary: [2.064 git-head] Errors building phobos docs
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-19 15:05 UTC by Nick Sabalausky
Modified: 2015-06-09 05:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nick Sabalausky 2013-08-19 15:05:24 UTC
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 Andrej Mitrovic 2013-08-25 05:58:15 UTC
(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 Nick Sabalausky 2013-08-25 22:09:17 UTC
I had doubled-checked that, but now that I look again the wrong DMD was indeed being picked up.