[Issue 6510] [CTFE] "internal error: illegal stack value" when compiled with -inline
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 17 06:52:10 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6510
--- Comment #5 from Don <clugdbug at yahoo.com.au> 2011-08-17 06:52:06 PDT ---
Partially reduced test case. The UNUSED static function seems to be necessary.
struct Stack(U) {
struct Proxy {
int[] data;
void shrink(){ data = data[0..0]; }
}
Proxy stack;
void pop() {
stack.shrink();
}
}
int bug6510() {
static void UNUSED() {
Stack!(int) junk;
junk.pop();
}
Stack!(int) opstk;
opstk.pop();
return 3;
}
static assert(bug6510());
--
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