step-examples/12-1c-syntax/Ls048.stp
Sources
- T025, Q046, G088, N032
Description
The external mapping of a multiple-inheritance entity must list ALL ancestor leaves, not only the most-specific subtypes. A writer that elides an ancestor (e.g. `NAMED_UNIT` between `CONVERSION_BASED_UNIT` and `PLANE_ANGLE_UNIT`) produces a record that resolves ambiguously on dispatch.
Reproducer recipe
`#10=( CONVERSION_BASED_UNIT('DEG',#9) PLANE_ANGLE_UNIT() );` — ancestor `NAMED_UNIT` missing from the leaf list.
Expected kernel behavior
Reject the record (or accept-with-warning and synthesise the missing ancestor); never silently bind to an arbitrary subset of the type lattice.
Notes
**See also**: Ls010, Ls047. **OCC behavior**: silently accepts (no diagnostic, empty result); catalog disallows silent-accept. Kernel-bug witnessed: receivers enforcing the spec must reject (or surface a diagnostic); silent acceptance defeats the catalog's stated invariant. Synonyms: "complex entity ancestor leaf omitted", "NAMED_UNIT missing from complex unit record", "STEP multi-inheritance ancestor missing", "incomplete leaf chain in complex entity", "leaf elision in complex record".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb'#\d+\s*=\s*\(\s*CONVERSION_BASED_UNIT')not_contains(b'NAMED_UNIT(*)')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1/* Ls048 - Complex entity record: ancestor leaf NAMED_UNIT omitted 2 ---------------------------------------------------------------------- 3 Catalog section : §12.1c complex entity instances 4 Sources : T025, Q046, G088, N032 5 See also : Ls010, Ls047 6 ---------------------------------------------------------------------- 7 Defect 8 The external mapping of a multiple-inheritance entity must list ALL 9 ancestor leaves. A writer that elides an ancestor produces a record 10 that resolves ambiguously on dispatch. 11 The missing ancestor is NAMED_UNIT (the star-arg leaf between 12 CONVERSION_BASED_UNIT and PLANE_ANGLE_UNIT). 13 This defective form omits that intermediate ancestor leaf. 14 Expected behavior 15 Reject the record (or accept-with-warning and synthesise the missing 16 ancestor); never silently bind to an arbitrary subset of the type lattice. 17 ---------------------------------------------------------------------- 18*/ 19ISO-10303-21; 20HEADER; 21FILE_DESCRIPTION(('Ls048 - complex entity ancestor leaf omitted'),'2;1'); 22FILE_NAME('Ls048.stp','2026-06-20T00:00:00',('auto-generated'),(''), 23 'auto-generated','',''); 24FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 25ENDSEC; 26DATA; 27/* #9 is a plain SI radian unit used as the conversion factor reference */ 28#9=( SI_UNIT(.MILLI.,.RADIAN.) ); 29/* Defect: the NAMED_UNIT ancestor leaf is missing from the complex unit record */ 30/* The intermediate ancestor (star-arg) between CONVERSION_BASED_UNIT and */ 31/* PLANE_ANGLE_UNIT must be included per ISO 10303-21 external mapping rules */ 32#10=( CONVERSION_BASED_UNIT('DEG',#9) PLANE_ANGLE_UNIT() ); 33ENDSEC; 34END-ISO-10303-21;