digitalmars.D.bugs - [Issue 10342] New: Error spew from specific compile order
- d-bugmail puremagic.com (41/41) Jun 12 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10342
http://d.puremagic.com/issues/show_bug.cgi?id=10342 Summary: Error spew from specific compile order Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: peter.alexander.au gmail.com 02:57:49 PDT --- The following test case results in an unnecessary spew of invalid errors. ---- a.d ---- void main() { x; } ---- b.d ---- import std.stdio; ---- c.d ---- import std.stdio; immutable ushort p; void foo() { writefln("%d", p); } ---- Compile with ---- dmd a.d b.d c.d ---- Output ---- a.d(1): Error: undefined identifier x, did you mean module a? std/format.d(1205): Error: cannot implicitly convert expression (obj) of type immutable(ushort) to immutable(bool) std/format.d(2950): Error: template instance std.format.formatValue!(LockingTextWriter, immutable(ushort), char) error instantiating ... lots more similar nonsense errors ... NOTES: - The file order in the compile is important, compiling c.d before b.d removes the issue - Yes, the b.d file is necessary to repro Expected behaviour: only the first line of the output should be presented (undefined identifier x) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 12 2013