[Issue 4426] New: assert(condition, string) fails in std.array.back

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 4 13:57:25 PDT 2010


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 at puremagic.com
        ReportedBy: andrei at metalanguage.com


--- Comment #0 from Andrei Alexandrescu <andrei at 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: -------


More information about the Digitalmars-d-bugs mailing list