Bug 8912 – Error compiling core.memory - possible DDoc problem
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-10-30T04:45:29Z
Last change time
2020-03-21T03:56:38Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
kai
Comments
Comment #0 by kai — 2012-10-30T04:45:29Z
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 by bearophile_hugs — 2012-10-30T05:59:42Z
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 by andrej.mitrovich — 2012-11-01T22:44:14Z
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