Bug 9509 – std.stdio fails to import with specific dmd command-line options
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2013-02-14T07:05:00Z
Last change time
2013-02-15T03:13:41Z
Assigned to
nobody
Creator
arthur
Comments
Comment #0 by arthur — 2013-02-14T07:05:30Z
Trivial program:
import std.stdio;
void main() {
writeln("Hello");
}
On the latest 2.061 MacOS dmd release (I installed via the DMD installer), if I attempt to compile this with options:
-O -inline -noboundscheck -release
I get an error (sadly, I don't have it handy at the moment) from the std.stdio import. It's something about feof and eof and one not being callable from the user due to one of them being pure.
If I remove the "-inline" option, all is well. It tried various combinations of the aforementioned options but all need to be present to make the issue manifest.
If there's more information required, do yell. I'll update the issue with the exact error message when I'm back in front of my Mac.
Comment #1 by arthur — 2013-02-15T03:13:41Z
Issue was do to me installing a newer version and the installer didn't tidy up what was there first. Removing and reinstalling the latest version has this issue gone.
*** This issue has been marked as a duplicate of issue 9510 ***