[Issue 10342] New: Error spew from specific compile order
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 12 02:57:50 PDT 2013
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 at puremagic.com
ReportedBy: peter.alexander.au at gmail.com
--- Comment #0 from Peter Alexander <peter.alexander.au at gmail.com> 2013-06-12 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: -------
More information about the Digitalmars-d-bugs
mailing list