D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8679 - ICE: 'v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < stackPointer()' on line 100 in file 'interpret.c'
Summary: ICE: 'v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < stackPointer()' on line 1...
Status: RESOLVED DUPLICATE of issue 8253
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 11:23 UTC by Andrej Mitrovic
Modified: 2012-09-20 23:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2012-09-17 11:23:16 UTC
class Foo
{
    string foo()
    {
        return "";
    }
}

void main()
{
    Foo f = new Foo;
    mixin(f.foo());
}

test.d(14): Error: variable f cannot be read at compile time
Assertion failure: 'v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack < stackPointer()' on line 100 in file 'interpret.c'

The error is ok but the ICE should not appear. Not my code, reduced from: http://forum.dlang.org/thread/kftoqbweswexqjumkhks@forum.dlang.org#post-kftoqbweswexqjumkhks:40forum.dlang.org
Comment 1 Don 2012-09-20 23:45:30 UTC

*** This issue has been marked as a duplicate of issue 8253 ***