Closed Headline closed 5 years ago
thanks to shavit for reporting this one.
Gave it a shot myself, but a solution wasn't obvious to me. Here's how to replicate
int main(){ if( { int b = c(); } }
C:\Users\Micha\Desktop\alliedmodders\sourcemod\sourcepawn\build\compiler\spcomp>spcomp test.sp SourcePawn Compiler 1.10 Copyright (c) 1997-2006 ITB CompuPhase Copyright (c) 2004-2018 AlliedModders LLC Assertion failed: lval1->sym!=NULL, file C:\Users\Micha\Desktop\alliedmodders\sourcemod\sourcepawn\compiler\expressions.cpp, line 1057
Oh gross.
The bug is that { begins an array expression, but those are only expected within initializers.
thanks to shavit for reporting this one.
Gave it a shot myself, but a solution wasn't obvious to me. Here's how to replicate