Bug 5398 – Unterminated doc comment ignored

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-01-01T13:49:00Z
Last change time
2015-06-09T05:11:50Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
robert

Comments

Comment #0 by robert — 2011-01-01T13:49:02Z
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 by robert — 2011-01-01T14:06:36Z
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 by robert — 2011-12-23T06:10:37Z
Seems to be working now.