Advertisement

'auto' causes crash with anonymous functions

Started by September 09, 2015 02:24 PM
1 comment, last by WitchLord 9 years, 2 months ago
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

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.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

I've fixed this in revision 2221.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement