Summary: Wrong suggestion in error (import std.stdio for
           Product: D
           Version: D1
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Leandro Lucarella <> 2010-06-16 16:38:49 
PDT ---
I accidentally compiled some trivial D2 code with D1 and got a bad suggestion
from the compiler. Here is a trivial testcase:

import std.stdio;
void main() {

t.d(3): Error: 'writeln' is not defined, perhaps you need to import std.stdio;
t.d(3): Error: function expected before (), not __error of type _error_

Both errors are really confusing. First, std.stdio is already imported (but D1
doesn't have writeln(), just writefln()). Then there is a crpyptic error about
things that are not even present in the file.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to