🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
'auto' causes crash with anonymous functions
funcdef void CB();
CB @cb0 = function() {}; // ok
auto cb1=cb0; // ok
auto cb2= function() {}; // crash
auto @cb3= function() {}; // crash
error info:
Assertion failed: !invalidStackSize, file ..\..\source\as_bytecode.cpp, line 2430
CB @cb0 = function() {}; // ok
auto cb1=cb0; // ok
auto cb2= function() {}; // crash
auto @cb3= function() {}; // crash
error info:
Assertion failed: !invalidStackSize, file ..\..\source\as_bytecode.cpp, line 2430
Thanks. I'll have this fixed.
The compiler should detect and generate a proper error message informing that it is not possible to determine the signature of the anonymous function when used like this.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement