[Issue 7699] New: Cannot get frame pointer to function when compiling with -inline

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 13 04:25:36 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7699

           Summary: Cannot get frame pointer to function when compiling
                    with -inline
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: leandro.lucarella at sociomantic.com


--- Comment #0 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-03-13 04:25:46 PDT ---
Reduced testcase:
---
module test;
class P
{
    void f(int n) in {
        assert (n);
    } body { }
}
class D: P
{
    void f(int n) in { } body { }
}
---

Error (only when compiling with -inline):
---
test.d(5): Error: function test.D.f cannot get frame pointer to f
---

Not using -inline makes it compile. Removing the empty in {} contract in D,
makes it compile.

-- 
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