digitalmars.D.bugs - [Issue 3851] New: Array copy error message with no line number
- d-bugmail puremagic.com (24/24) Feb 24 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3851
- d-bugmail puremagic.com (11/11) Mar 11 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3851
- d-bugmail puremagic.com (15/15) Oct 21 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3851
- d-bugmail puremagic.com (11/11) Oct 22 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3851
- d-bugmail puremagic.com (10/10) Oct 22 2012 http://d.puremagic.com/issues/show_bug.cgi?id=3851
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 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: -------
Feb 24 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3851 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|minor |enhancement 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: -------
Mar 11 2010
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 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: -------
Oct 21 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3851 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 Fix Issue 3851 - Array copy error message -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 22 2012
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: -------
Oct 22 2012