Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 21, 2010 [Issue 4109] New: writeln doesn't work with empty static array | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4109 Summary: writeln doesn't work with empty static array Product: D Version: future Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2010-04-21 13:48:33 PDT --- This D2 code: import std.stdio: writeln; void main() { int[0] a; writeln(a); } dmd 2.043 shows: [...]\dmd\src\phobos\std\format.d(2040): Error: array index 0 is out of bounds obj[0 .. 0] [...]\dmd\src\phobos\std\format.d(2040): Error: array index 0 is out of bounds [0..0] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 23, 2010 [Issue 4109] writeln doesn't work with empty static array | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=4109 Shin Fujishiro <rsinfu@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rsinfu@gmail.com Resolution| |FIXED --- Comment #1 from Shin Fujishiro <rsinfu@gmail.com> 2010-05-23 05:00:48 PDT --- Fixed in svn r1546. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 14, 2010 [Issue 4109] writeln doesn't work with empty static array | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=4109 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #2 from bearophile_hugs@eml.cc 2010-06-14 04:39:14 PDT --- Reopened. Phobos needs to be debugged with warnings on. If I compile that program with: dmd -w test.d DMD 2.047 prints: ...\src\phobos\std\format.d(2040): Warning: statement is not reachable ...\src\phobos\std\format.d(2041): Warning: statement is not reachable -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 14, 2010 [Issue 4109] writeln doesn't work with empty static array | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=4109 Shin Fujishiro <rsinfu@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #3 from Shin Fujishiro <rsinfu@gmail.com> 2010-06-14 08:42:42 PDT --- Okay, I fixed it in svn r1642. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation