Erroneous code generated for sliding decoder with bitstring stream
Submitted by Botond Baranyi
Assigned to Botond Baranyi
Link to original bug (#520008)
Description
The code generated for decoder external functions, when using the sliding prototype and when the stream is a bitstring, contains C++ compilation errors.
Example: type record Rec { integer f } with { encode "JSON" }
external function f_dec(inout bitstring x, out Rec y) return integer with { extension "prototype(sliding) decode(JSON)" }
Output: test.cc: In function ‘INTEGER test::f__dec(BITSTRING&, test::Rec&)’: test.cc:920:19: error: jump to case label [-fpermissive] case TTCN_EncDec::ET_INCOMPL_MSG:
Version: 6.2.0