Bug 562085 - Faulty subtype checking
Summary: Faulty subtype checking
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: titan.core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-14 03:06 EDT by G??bor Szalai CLA
Modified: 2021-04-23 10:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description G??bor Szalai CLA 2020-04-14 03:06:55 EDT
The following subtyping is a valid according to the standard but not accepted by the TITAN:

  type set r1  {
    charstring  f1,
    charstring  f3 optional
  } 


type r1 r1s ({f3:=omit})

proba.ttcn:10.14-24: error: Field `f1' is missing from set value

6.2.13.2:
When constraining record and set types, templates of the expanded list defined using the value list notation shall be valid (i.e. complete) templates, while templates of the expanded list defined using the field assignment notation may be partial (i.e. incomplete). In the latter case, the fields that are not explicitly present shall be considered as containing AnyValue for mandatory fields and AnyValueOrNone for optional fields.
Comment 1 Denis Roy CLA 2021-04-23 10:42:48 EDT
This bug was migrated to GitLab: https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues