www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8912] New: Error compiling core.memory - possible DDoc problem

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8912

           Summary: Error compiling core.memory - possible DDoc problem
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: kai redstar.de



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?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8912


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8912


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com



22:44:14 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 01 2012