Hi Johan, Sorry for the late reply. Committed in 085633 with minor tweaks. Thanks for the patch! - Yang On 08/12/2015 08:06 AM, Johan Bengtsson wrote:
Hi,I manage to trigger a bug in UnionToStruct. If a union variable was initialized by copying another varable of the same type, as in the attached example, the union-to-struct transform would crash as it assumed that all union variables were initialized using an initializer list. I attached a patch that (hopefully) fixes the problem.Sincerely, Johan Bengtsson