Fix semantic pass on symbol that shouldn't be compiled