Ls056 — Non-nesting comment illusion; inner opener leaves a stray closer

§12.1c comment framing

P1 — silent data loss

spec-violation syntax

Sources

Description

ISO 10303-21 §6.3 block comments do NOT nest. In `/* a /* b */ tail */` the comment closes at the FIRST `*/`, so the inner `/*` is not an opener — it is comment text. Whatever follows the first closer is live token stream, and the final `*/` is a stray, unmatched closer (a lexical error). An author who tries to comment out an entity but nests a second opener inside will have that entity LEAK back into the parse: here `#2=CARTESIAN_POINT('leaked',...)` re-enters the token stream and a stray `*/` trails it.

Reproducer recipe

`/* a /* b */ #2=CARTESIAN_POINT('leaked',(0.,0.,0.)); */` — comment = `/* a /* b */`; the CARTESIAN_POINT leaks; the trailing `*/` is stray.

Expected kernel behavior

Treat comments as non-nesting per the spec and reject the stray `*/`; document the non-nesting rule clearly so authors do not rely on nested-comment behavior.

Notes

**See also**: Ls055. **OCC behavior**: OCC loads the file and produces no shape (empty). Re-audit (2026-07-18, empty-claim re-audit): the only model-root geometry is loose `DIRECTION`s and a leaked `CARTESIAN_POINT`, which has no shape-representation root and OCC transfers to no shape even when well-formed (confirmed by a matching well-formed control — loads empty); the declared Part-21 syntax defect cannot manifest as lost geometry (base and clean both empty). Toy/placeholder topology, not a defect-driven data-loss; not a proven kernel bug. Synonyms: "nested comment illusion", "comments do not nest", "stray */", "leaked entity from comment", "unmatched comment closer", "double */ after entity". Provenance tier: bytes-only. Expected validation is provisional (best-guess) pending oracle rebaseline — the live occt/gmsh oracle is not run here (platform divergence); nightly CI reconciles.

Expected validation

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

Provenance tier

bytes-only — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Cross-references

Ls055

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ls056: non-nesting comment illusion leaves a stray closer and a leaked entity; ISO 10303-21 6.3 block comments do NOT nest, so in a slash-star opener that contains a second slash-star, the comment closes at the FIRST star-slash; the inner opener is just comment text; the author tried to comment out a CARTESIAN_POINT but nested a second opener inside, so the CARTESIAN_POINT LEAKS back into the token stream and the trailing star-slash is a stray, unmatched closer; expected kernel behavior: treat comments as non-nesting per the spec and reject the stray closer; document the non-nesting rule clearly; synonyms: nested comment illusion, comments do not nest, stray star-slash, leaked entity from comment, unmatched comment closer, double star-slash after entity; the stray closer and leaked CARTESIAN_POINT are the defect carriers */
3HEADER;
4FILE_DESCRIPTION(('Ls056'),'2;1');
5FILE_NAME('Ls056.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=DIRECTION('d',(1.,0.,0.));
10/* Defect: the author tried to comment out an entity but nested a second
11   comment opener inside. Part-21 comments do NOT nest (ISO 10303-21 6.3):
12   the comment closes at the FIRST closer, so the CARTESIAN_POINT below
13   LEAKS back into the token stream and a stray closer follows it. */
14/* a /* b */ #2=CARTESIAN_POINT('leaked',(0.,0.,0.)); */
15#3=DIRECTION('after',(0.,1.,0.));
16ENDSEC;
17END-ISO-10303-21;