﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1848	Tuple assignments containing records in which a component has been aliased are not generated correctly in CodegenC.tpl	Adrian Pop	Adrian Pop	"
Example:
{{{
(GV1.SG_volume.lsat, GV1.SG_volume.vsat) = ThermoSysPro.Properties.WaterSteam.IF97.Water_sat_P(GV1.SG_volume.P);
}}}

GV1.SG_volume.lsat.T is replaced during backend analysis with W_GV3.T[1] and we get to:
{{{
[CodegenC.tpl:5141:9-5141:9:writable] Error: Template error: writeLhsCref UNHANDLED:
ThermoSysPro.Properties.WaterSteam.Common.PropThermoSat(
 GV3.SG_volume.lsat.P, 
 W_GV3.T[1], 
 GV3.SG_volume.lsat.rho, 
 GV3.SG_volume.lsat.h, 
 GV3.SG_volume.lsat.cp, 
 GV3.SG_volume.lsat.pt, 
 GV3.SG_volume.lsat.cv)
= tmp127.c1
}}}

This should be translated to:
 GV3.SG_volume.lsat.P = tmp127.c1.P;
 W_GV3.T[1] = tmp127.c1.T;
 GV3.SG_volume.lsat.rho = tmp127.c1.rho;
 GV3.SG_volume.lsat.h = tmp127.c1.h;
 GV3.SG_volume.lsat.cp = tmp127.c1.cp;
 GV3.SG_volume.lsat.pt = tmp127.c1.pt; 
 GV3.SG_volume.lsat.cv = tmp127.c1.cv;
"	defect	closed	high	1.9.0	Code Generation		fixed		
