[Issue 11794] New: Compilation fails with a certain selective import
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 21 15:52:45 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11794
Summary: Compilation fails with a certain selective import
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: nick at wabbo.org
--- Comment #0 from nick at wabbo.org 2013-12-21 15:52:44 PST ---
I'm not sure whether this is a problem with my code or a bug. The following
code compiles and executes as expected:
import std.stdio;
import std.conv : to;
void main() {
auto x = std.conv.to!double("7.3");
writeln(x - 2.2);
}
However, changing the first line to this:
import std.stdio : writeln;
results in the following error:
: dmd main.d
main.d(5): Error: undefined identifier std
This is with DMD 2.064.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list