[FX-744] f8c incorrectly removes unused fields from the top of fields list - Fix8 JIRA

f8c incorrectly removes unused fields from the top of fields list

Description

Take schema\FIX42.xml and remove all messages except for session and market data (see attached FIX42.xml file for result). This is possible if you want to just subscribe to market data and not place orders. In this case fileds ##1-6 will become unused and f8c will try to remove them. Unfortunately this results in invalid my_types.cpp (see attached file), in particular fldpairs array is generated incorrectly (see leading comma):

1 2 3 4 5 const my_BaseEntry::Pair fldpairs[] { , { 7, { Type2Type<my::BeginSeqNo>(), "BeginSeqNo", 7 } }, { 8, { Type2Type<my::BeginString>(), "BeginString", 8 } },

A workaround for this is to manually remove fields ##1-6 from <fields/> tag in FIX42.xml.

Environment

Windows 7 Pro, SP 1. Microsoft Visual Studio 2015, Update 3.

Status

Assignee

David Dight

Reporter

Oleg Ryabkov

Labels

None

Branch

dev

Products

All

Components

Fix versions

Affects versions

1.4.0
2.5.2

Priority

Minor