Lh024 — Reuse of `#NNN` across different DATA sections (Ed.3 multi-section)

§12.1b header/numbering

P1 — silent data loss

syntax

Sources

Description

Edition 3 allows multiple `DATA;…ENDSEC;` sections, each with its own `#NNN` namespace; cross-section references use `@section_name#N` syntax. Tools targeting Edition 1 either fail at the second `DATA;` or silently flatten namespaces, causing collisions when `#10` appears in both sections.

Reproducer recipe

`HEADER;..ENDSEC;DATA;#10=PRODUCT(..);ENDSEC;DATA('extra',('AUTOMOTIVE_DESIGN'));#10=APPLICATION_CONTEXT('..');ENDSEC;END-ISO-10303-21;`

Expected kernel behavior

Heal and accept N≥1 DATA sections; scope `#N` IDs per-section; resolve cross-section references via the proper Ed.3 syntax; never flatten namespaces across sections. Must not silently flatten.

Notes

**See also**: Ad080, Lh022. Synonyms: "#NNN reused across DATA sections", "Ed.3 multi-section ID collision", "two DATA sections share #10", "namespace flattened across sections", "STEP multi-section reference broken".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Ad080, Lh022

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Lh024: two DATA sections each define #10 — Ed.3 namespace collision */
3/* ISO 10303-21 Ed.3: each DATA section has its own #NNN namespace */
4/* DEFECT: Ed.1/2 readers flatten namespaces; #10 collides across sections */
5/* Cross-section references should use @section_name#N syntax in Ed.3 */
6/* OCC: silently accepts (empty result); catalog requires heal or reject */
7HEADER;
8FILE_DESCRIPTION(('Lh024: #NNN reused across two DATA sections'),'2;1');
9FILE_NAME('Lh024.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN'));
11ENDSEC;
12/* First DATA section: defines #10 as PRODUCT */
13DATA;
14#1=CARTESIAN_POINT('origin',(0.,0.,0.));
15#2=CARTESIAN_POINT('corner',(1.,1.,0.));
16#10=PRODUCT('part-a','Part A','',(#11));
17#11=APPLICATION_CONTEXT('automotive design');
18#12=GEOMETRIC_CURVE_SET('section1-shape',(#1,#2));
19ENDSEC;
20/* DEFECT: second DATA section reuses #10 — collides with #10 from first section */
21DATA('supplemental',('AUTOMOTIVE_DESIGN'));
22#10=APPLICATION_CONTEXT('supplemental context');
23#20=CARTESIAN_POINT('extra',(2.,2.,0.));
24#21=GEOMETRIC_CURVE_SET('section2-shape',(#20));
25ENDSEC;
26END-ISO-10303-21;