diff -r e7d6f28fc882 -r cb78940b2cb8 stage3/lvalue_check.cc --- a/stage3/lvalue_check.cc Wed Apr 25 15:46:53 2012 +0100 +++ b/stage3/lvalue_check.cc Wed Apr 25 15:56:45 2012 +0100 @@ -371,7 +371,13 @@ /* B 2.1 Instructions and Operands */ /***********************************/ void *lvalue_check_c::visit(il_instruction_c *symbol) { - symbol->il_instruction->accept(*this); + /* il_instruction will be NULL when parsing a label with no instruction + * e.g.: label1: <---- il_instruction = NULL! + * LD 33 + * ... + */ + if (NULL != symbol->il_instruction) + symbol->il_instruction->accept(*this); return NULL; }