Just had my project broken by this bug too!
I tried to add one fresh variable to my c++ struct and that worked fine. Then making two more of the same type and then it all broke.
I have tried deleting Intermediates folder and regenerating VS files but nothing helps. Its broke.