[Issue 9445] New: interpret.c:151: Assertion `v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < stackPointer()' failed.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 2 22:57:47 PST 2013


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

           Summary: interpret.c:151: Assertion `v->ctfeAdrOnStack >= 0 &&
                    v->ctfeAdrOnStack < stackPointer()' failed.
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Keywords: CTFE, ice
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: Marco.Leise at gmx.de


--- Comment #0 from Marco Leise <Marco.Leise at gmx.de> 2013-02-02 22:57:46 PST ---
I don't know how to describe the error, but here is some reduced code that
provokes the error in DMD 2.061:

--- Vector.d ---

import Rotate;
import Scale;

struct SVector(T)
{
    this(T) {}
    ref opOpAssign(string op)(T) {}
    ref opOpAssign(string op)(SScale!T) {}
    void foo() { this *= 1.0; }
}

struct SNormal(T)
{
    this(SVector!T) { SVector!T().foo; }
}

--- Scale.d ---

import Vector;

struct SScale(T)
{
    auto aaa = SVector!T(1.0);
}

--- Rotate.d ---

import Vector;

struct SRotate(T)
{
    this()(int) {}
    this()(char)
    {
        SRotate!T(0);
        SNormal!T aaa = SVector!T();
    }
}

auto bbb = SRotate!(float)('A');

----------------

Compiled with "dmd Vector.d"

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