D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8912 - Error compiling core.memory - possible DDoc problem
Summary: Error compiling core.memory - possible DDoc problem
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2012-10-30 04:45 UTC by kai
Modified: 2020-03-21 03:56 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kai 2012-10-30 04:45:29 UTC
I am using head version of DMD. While compiling druntime on Windows (32 bit) I get the following error:

dmd -c -w -o- -Isrc -Iimport -Dfdoc\core_memory.html -version=CoreDdoc src\core\
memory.d
(16): Error: unterminated character constant
(39): Error: unterminated character constant

Both lines are in a comment. Maybe something wrong with DDoc generation?
Comment 1 bearophile_hugs 2012-10-30 05:59:42 UTC
During the compilation of DMD/druntime/Phobos there are other things that pop up:

make clean
del ..\..\lib\cppunit.lib
Can't find C:\dmd2\src\dmd\src\cppunit-1.12.1\lib\cppunit.lib


dmc -c -Iroot;\dm\include -o   -cpp -DDM_TARGET_CPU_X86=1  dsymbol
            else if (ce->type && (t = ce->type->toBasetype()) &&
                                                               ^
dsymbol.c(1351) : Warning 2: possible unintended assignment
                if ((t = e->type->toBasetype()) && t->ty == Tfunction)
                                                                     ^
dsymbol.c(1417) : Warning 2: possible unintended assignment
Comment 2 Andrej Mitrovic 2012-11-01 22:44:14 UTC
I can recreate the bug with DMD 2.060.

Anyway it is related to ddoc, git head stack trace:

0012f800  0045086c  DMD!Lexer::charConstant(Token*,int )+0x174
0012f8bc  004acf10  DMD!Lexer::scan(Token*)+0xa3
0012f974  004acaa9  DMD!highlightCode2+0x93
0012fa00  004abcab  DMD!highlightText+0x44d
0012fa48  004abafe  DMD!Section::write(DocComment*,Scope*,Dsymbol*,OutBuffer*)+0x12a
0012fa80  004aa097  DMD!DocComment::writeSections(Scope*,Dsymbol*,OutBuffer*)+0x94
0012fb48  004050c7  DMD!Module::gendocfile()+0x33f(...)
0012ff44  004052f0  DMD!tryMain+0x2bea
0012ff80  0055f225  DMD!main+0x43
0012ffc0  7c817067  DMD!mainCRTStartup+0xa9