Opened 5 years ago

Closed 5 years ago

Last modified 21 months ago

#446 closed defect (fixed)

incorrect assignment for type with discriminant

Reported by: vadim.godunko Owned by: Maxim Reznik
Priority: major Milestone: 18.0
Component: Matreshka - a2js Version:
Keywords: Cc:

Description

For type

   type Optional_Real (Present : Boolean := False) is record
      case Present is
         when False =>
            null;

         when True =>
            Value : Real;
      end case;
   end record;

generated _assign function assigns only 'value' component and ignores 'present' discriminant.

Change History (2)

comment:1 by Maxim Reznik, 5 years ago

Owner: set to Maxim Reznik
Resolution: fixed
Status: newclosed

In 5499:

Add Assign property

to calculate _assign subprogram for assiging components,
discriminants, variants and variant parts.
Fixed #446

comment:2 by vadim.godunko, 21 months ago

Milestone: 0.8.018.0

Milestone renamed

Note: See TracTickets for help on using tickets.