Summary: Yet another "cannot get frame pointer" error
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: rejects-valid
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from David Simcha <> 2011-10-14 09:02:28 PDT ---
import std.range, std.algorithm;

void main() {
    auto arr1 = [1, 2, 3, 4, 5];
    float[] f = [1, 2, 3, 4, 5];
    auto ind = sort!((int a, int b) {
        return f[a] > f[b];
    })([1, 2, 3, 4, 5]);

    auto result = indexed(arr1, ind);

$ dmd -inline test.d
/cis/home/dsimcha/dmd2/linux/bin64/../../src/phobos/std/range.d(5962): Error:
std.range.Indexed!(int[],SortedRange!(int[],__dgliteral1)) cannot
get frame pointer to main
/cis/home/dsimcha/dmd2/linux/bin64/../../src/phobos/std/range.d(6001): Error:
cannot get frame pointer to main

I can only reproduce this on Linux, only with -inline and only with the call to
sort(), which isn't related in any obvious way.  I can't reproduce it with GDC,
meaning it's likely a backend bug.  Therefore, my guess is that this bug is
somehow related to Linux exception handling.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to