[Issue 9509] New: std.stdio fails to import with specific dmd command-line options

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 14 07:05:31 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9509

           Summary: std.stdio fails to import with specific dmd
                    command-line options
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: arthur at itssomething.ca


--- Comment #0 from Arthur Castonguay <arthur at itssomething.ca> 2013-02-14 07:05:30 PST ---
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.

-- 
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