http://d.puremagic.com/issues/show_bug.cgi?id=7997
Summary: Optlink crash with static zero length array Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Optlink AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2012-04-27 04:54:06 PDT --- This program compiles with no errors: void main() { int[0] foos; foreach (f; foos) {} } But the following 3 ones: int[0] foos; void main() { foreach (f; foos) {} } void main() { static int[0] foos; foreach (f; foos) {} } void main() { __gshared int[0] foos; foreach (f; foos) {} } Crash Optlink with error (DMD 2.060alpha): OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html bug3.obj(bug3) Offset 002C3H Record Type 009D Error 16: Index Range -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------