namespace,
self.entry.name,
code.error_goto_if_null(self.result_code, self.pos)))
- elif entry.is_local:
+ elif entry.is_local and False:
+ # control flow not good enough yet
assigned = entry.scope.control_flow.get_state((entry.name, 'initalized'), self.pos)
if assigned is False:
error(self.pos, "local variable '%s' referenced before assignment" % entry.name)
def analyse_declarations(self, env, enum_entry):
if self.value:
self.value.analyse_const_expression(env)
+ if not self.value.type.is_int:
+ self.value = self.value.coerce_to(PyrexTypes.c_int_type, env)
+ self.value.analyse_const_expression(env)
value = self.value.result_code
else:
value = self.name