https://issues.dlang.org/show_bug.cgi?id=13172
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: nob...@puremagic.com Reporter: maartenvd1...@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 _D3std9exception133__T12errnoEnforceTbVAyaa50_433a5c 445c646d64325c77696e646f77735c62696e5c2e2e5c1079E2AF018CEE885E4194B2927ACD6F --- 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 linux --