Code generation error for arrays with JSON encoding
Submitted by Botond Baranyi
Link to original bug (#516803)
Description
If an array has JSON encoding support, then the compiler generates a new C++ class for it (which inherits the built-in VALUE_ARRAY class template and contains the type descriptor), otherwise VALUE_ARRAY is used.
If this array is used as a field or element of another structure, then the 'valueof' method in the class generated for the structure template will cause a C++ compilation error (because the VALUE_ARRAY instance cannot be converted to an instance of the new array class).
Example: type integer Array[4] with { encode "JSON" }
type record of Array ArrayList; // C++ compilation error
type record Rec { Array a } // C++ compilation error
Version: 6.1.0