[FX-452] f8c generated incorrect code - Fix8 JIRA

f8c generated incorrect code

Description

f8c generates:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 const FieldTrait NoRelatedSymV1_traits[] // refs:3 { }; const FieldTrait_Hash_Array NoRelatedSymV1_ftha(NoRelatedSymV1_traits, 0); const MsgType NoRelatedSymV1_msgtype("NoRelatedSym"); //------------------------------------------------------------------------------------------------- const FieldTrait NoLegsV1_traits[] // refs:2 { }; const FieldTrait_Hash_Array NoLegsV1_ftha(NoLegsV1_traits, 0); const MsgType NoLegsV1_msgtype("NoLegs"); } // namespace

That gives a compile error o VS2008 that cannot allocate of array of 0 size. I'm sure that the generated code is not quite correct. Please have a look to attached xml. NoRelateSym is used in several places with different content.

Environment

Windows VS2013
Windows VS2008 on 1.1

Status

Assignee

David Dight

Reporter

Sergey Sedreev

Labels

Branch

dev

Products

All

Components

Fix versions

Affects versions

1.1.0
2.0.2

Priority

Blocker