Thread overview
[Issue 5398] New: Unterminated doc comment ignored
Jan 01, 2011
Robert Clipsham
Jan 01, 2011
Robert Clipsham
Dec 23, 2011
Robert Clipsham
January 01, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5398

           Summary: Unterminated doc comment ignored
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: robert@octarineparrot.com


--- Comment #0 from Robert Clipsham <robert@octarineparrot.com> 2011-01-01 21:49:02 GMT ---
When the following is compiled with
----
dmd -unittest -c Sqlite.d
----
Sqlite.d:
----
module Sqlite;

import Database;

class SqliteDatabase
{
    public Result!(T) execute(T)()
    {
        assert(0);
    }
}

unittest
{
    auto db = new SqliteDatabase();
    struct Test
    {
    }
    db.execute!(Test)();
}
----
Database.d:
----
module Database;

class Result(T)
{
    T[] mResults;
//import tango.util.log.Trace;
import tango.util.log.Log;

    size_t length()
    {
        return mResults.length;
    }
}
----
Log.d:
----
module Log;
/+/++/
---
dmd compiles without error, when it should complain about the unterminated documentation comment in Log.d. In LDC this leads to some weird semantic errors: http://dsource.org/projects/ldc/ticket/447

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 01, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5398


Robert Clipsham <robert@octarineparrot.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                URL|                            |http://dsource.org/projects
                   |                            |/ldc/ticket/447


--- Comment #1 from Robert Clipsham <robert@octarineparrot.com> 2011-01-01 22:06:36 GMT ---
import tango.util.log.Log; <= that line should be import Log; obviously, that's a remnant from an old version of the code before I narrowed it down.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 23, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5398


Robert Clipsham <robert@octarineparrot.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #2 from Robert Clipsham <robert@octarineparrot.com> 2011-12-23 14:10:37 GMT ---
Seems to be working now.

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