D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5398 - Unterminated doc comment ignored
Summary: Unterminated doc comment ignored
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL: http://dsource.org/projects/ldc/ticke...
Keywords: accepts-invalid
Depends on:
Blocks:
 
Reported: 2011-01-01 13:49 UTC by Robert Clipsham
Modified: 2015-06-09 05:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Robert Clipsham 2011-01-01 13:49:02 UTC
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
Comment 1 Robert Clipsham 2011-01-01 14:06:36 UTC
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.
Comment 2 Robert Clipsham 2011-12-23 06:10:37 UTC
Seems to be working now.