Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
February 24, 2010 [Issue 3851] New: Array copy error message with no line number | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3851 Summary: Array copy error message with no line number Product: D Version: 2.040 Platform: x86 OS/Version: Windows Status: NEW Severity: minor Priority: P2 Component: druntime AssignedTo: sean@invisibleduck.org ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2010-02-24 08:19:51 PST --- This code: void main() { auto a1 = new int[5]; auto a2 = new int[4]; a1[] = a2; } Produces an error at runtime that doesn't show the line number (and file name): object.Exception: lengths don't match for array copy -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 11, 2010 [Issue 3851] Array copy error message with no line number | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3851 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|minor |enhancement --- Comment #1 from bearophile_hugs@eml.cc 2010-03-11 13:26:09 PST --- Suggestion from Steven Schveighoffer: once a stacktrace printout is available, probably there is no need to instrument code like this to show line numbers. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 22, 2012 [Issue 3851] Array copy error message with no line number | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3851 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com AssignedTo|sean@invisibleduck.org |andrej.mitrovich@gmail.com --- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-21 20:07:44 PDT --- I can't help you with lines (it would probably kill performance), but druntime already had some code to deal with mismatching lengths. It printed mismatched lengths for array assigns but not for copies (and also it printed invalid lengths due to relying on specific expression evaluation). I'm fixing this now. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 22, 2012 [Issue 3851] Array copy error message with no line number | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3851 --- Comment #3 from github-bugzilla@puremagic.com 2012-10-22 05:45:28 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/646f9c84320beb697baf0f13c5b12a28afd4dcc3 Fixes Issue 3851 - Print mismatching lengths for both assignments and copies. https://github.com/D-Programming-Language/druntime/commit/594613c5f028fca4778f682d02c568cac3e7ee73 Merge pull request #332 from AndrejMitrovic/Fix3851 Fix Issue 3851 - Array copy error message -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 22, 2012 [Issue 3851] Array copy error message with no line number | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3851 Alex Rønne Petersen <alex@lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |alex@lycus.org Resolution| |FIXED -- 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