[Issue 5398] New: Unterminated doc comment ignored

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 1 13:51:12 PST 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 at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at 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: -------


More information about the Digitalmars-d-bugs mailing list