digitalmars.D.bugs - [Issue 6883] New: Array static bounds tests with $ too
- d-bugmail puremagic.com (36/36) Nov 02 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6883
- d-bugmail puremagic.com (6/6) Nov 02 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6883
- d-bugmail puremagic.com (12/12) Dec 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6883
- d-bugmail puremagic.com (10/10) Dec 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6883
- d-bugmail puremagic.com (11/11) Dec 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6883
- d-bugmail puremagic.com (9/9) Dec 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6883
http://d.puremagic.com/issues/show_bug.cgi?id=6883 Summary: Array static bounds tests with $ too Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2011-11-02 17:12:14 PDT --- D2 code: void main() { int[5] x; x[x.length] = 1; enum size_t n = 2; x[x.length + n] = 2; } DMD 2.056 gives at compile-time: test.d(3): Error: array index 5 is out of bounds x[0 .. 5] test.d(5): Error: array index 7 is out of bounds x[0 .. 5] I'd like this similar program to give similar compile-time errors (with DMD 2.056 it gives no compile errors, and gives just run-time errors in debug mode): void main() { int[5] x; x[$] = 1; enum size_t n = 2; x[$ + n] = 2; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 02 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6883 --- Comment #1 from bearophile_hugs eml.cc 2011-11-02 17:16:56 PDT --- See also bug 6884 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 02 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6883 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal --- Comment #2 from bearophile_hugs eml.cc 2012-12-13 03:10:46 PST --- Instead of an enhancement request this now becomes a bug report, after a discussion with Walter: http://forum.dlang.org/thread/mswgcdhrzcgcjavtqvog forum.dlang.org?page=2#post-kacc35:24coi:241:40digitalmars.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 13 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6883 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #3 from Kenji Hara <k.hara.pg gmail.com> 2012-12-13 05:52:40 PST --- https://github.com/D-Programming-Language/dmd/pull/1372 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 13 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6883 --- Comment #4 from github-bugzilla puremagic.com 2012-12-13 06:45:23 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ca8ddac03a5e04f28290cb4ecac6147de312a582 fix Issue 6883 - Array static bounds tests with $ too https://github.com/D-Programming-Language/dmd/commit/b7443d1e52014ae36a6d556f5c71b14eb3148401 Merge pull request #1372 from 9rnsr/fix6883 Issue 6883 - Array static bounds tests with $ too -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 13 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6883 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 13 2012