Wrong code generated for custom enumerators
Original Reporter info from Mantis: Kornel Kisielewicz
-
Reporter name: Kornel Kisielewicz
Original Reporter info from Mantis: Kornel Kisielewicz
- Reporter name: Kornel Kisielewicz
Description:
Sometimes the compiler generates wrong field addresses for loop object when using a custom enumerator over a container class.
Steps to reproduce:
Run the attached program. The program should return Success, returns Failure.
Additional information:
I've hit a bug with a custom enumerator over a node tree. I tried minimizing and extracting the faulty code.
Attached is a program that simulates that error. The single node (in the original there were many) in the container has some fields -- iterating through them with our custom iterator doesn't properly work, because in the loop the addresses are wrongly associated for the fields.
Also reproduced on 2.6.0 rc1 and Linux.
Mantis conversion info:
- Mantis ID: 20827
- OS: Windows
- OS Build: 7
- Platform: Windows
- Version: 2.4.4
- Fixed in version: 3.0.0
- Fixed in revision: 19668 (#6cb6569d)