Branch: Tag:

2014-04-16

2014-04-16 19:15:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed variant zapping of reference #0.

The variant dispatcher collector was missing an offset, and always
zapped the modifier bits for identifier reference #0. This has the
effect that identifier reference #0 got the modifier bits intended
for the last variant dispatcher in the class.

3983:    free_type(id->type);    id->type = type;    id->opt_flags = opt_flags; -  prog->identifier_references->id_flags |= id_flags & ~(ID_VARIANT|ID_LOCAL); +  prog->identifier_references[e].id_flags |= id_flags & ~(ID_VARIANT|ID_LOCAL);    next_ref:    ;    }