[Issue 10492] Illegal Instruction for mixin template with scope declarations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 24 05:17:12 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=10492
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |EH, wrong-code
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at gmail.com> 2013-11-25 00:17:10 EST ---
class TestClass{}
mixin template test()
{
scope var = new TestClass;
}
void main(){
mixin test!();
}
The compiler wraps eh code around the var to run the destructor, and it looks
like it fails to restore esp correctly on exit.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list