July 04, 2010 [Issue 4426] New: assert(condition, string) fails in std.array.back | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4426 Summary: assert(condition, string) fails in std.array.back Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: andrei@metalanguage.com --- Comment #0 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-07-04 13:57:23 PDT --- This test inside std.array.back causes a segfault: assert(a.length, "Attempting to fetch the back of an empty array"); This doesn't: assert(a.length); The bug seems to manifest itself only on Linux and only in release mode. To reproduce, build Phobos on Linux like this: make -f linux.mak unittest BUILD=release DMDEXTRAFLAGS="-version=bugXXXX" where XXXX is the number of this bug report. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 02, 2012 [Issue 4426] assert(condition, string) fails in std.array.back | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | http://d.puremagic.com/issues/show_bug.cgi?id=4426 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |WORKSFORME --- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-02 14:35:08 EST --- The workaround is gone from std.array.back. -- 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