fix Issue 12554 - [ICE](struct.c line 898) with failed delegate purity
Merge pull request #3492 from 9rnsr/fix12554

[REG2.066a] Issue 12554 - [ICE](struct.c line 898) with failed delegate purity