www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13172] New: optimize and rawread cause symbol undefined errors


          Issue ID: 13172
           Summary: optimize and rawread cause symbol undefined errors
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: maartenvd1994 gmail.com

when compiling with -O -release -inline -noboundscheck, the following program: 

import std.stdio;  
uint[] meuh(){ 
File f; 
uint[] vfield=new uint[](3);
 return f.rawRead(vfield); 
void main(){}

gives the following error :
 Error 42: Symbol Undefined
--- errorlevel 1

This also failes to compile with optimization flags on ldmd2 . It is possible
to use '-allinst' to make it compile on dmd.
Not that this does compile without optimization flags, and it does compile on

Jul 20 2014