step-examples/12-1c-syntax/Ls004.stp
Sources
- T023
Description
Some legacy Fortran-fronted exporters (older I-DEAS, CADAM converters) emit `1.0D5` instead of `1.0E5`. ISO 10303-21 only allows `E`/`e`.
Reproducer recipe
`#1=DIRECTION('',(1.0D5,0.,0.));`
Expected kernel behavior
Reject with diagnostic "exponent must be 'E', got 'D'".
Notes
**See also**: Ls001. Synonyms: "Fortran D exponent in STEP", "1.0D5 instead of 1.0E5", "legacy Fortran writer emits D exponent", "I-DEAS D-exponent REAL", "CADAM D-style exponent".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb'\d[Dd][+-]?\d')contains(b'1.0D5') or contains(b'1.5D-3')
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Ls004: Fortran-style D exponent in REAL literal; some legacy Fortran-fronted exporters (older I-DEAS, CADAM converters) emit 1.0D5 instead of 1.0E5; ISO 10303-21 only allows E or e as the exponent indicator; defect: DIRECTION('',(1.0D5,0.,0.)) â D-exponent REAL in the first coordinate; also VECTOR magnitude uses 1.5D-3 (a second D-exponent variant); strict readers must reject with diagnostic 'exponent must be E, got D'; lenient mode must not silently accept â emit a warning at minimum; legacy Fortran writer emits D exponent; I-DEAS D-exponent REAL; CADAM D-style exponent; synonyms: Fortran D exponent in STEP, 1.0D5 instead of 1.0E5, legacy Fortran writer emits D exponent, I-DEAS D-exponent REAL, CADAM D-style exponent; GEOMETRIC_CURVE_SET IS NOT used â DIRECTION entity is the defect carrier */ 3HEADER; 4FILE_DESCRIPTION(('Ls004'),'2;1'); 5FILE_NAME('Ls004.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9/* Defect: Fortran-style D exponent â 1.0D5 instead of 1.0E5. */ 10/* ISO 10303-21 §6.4: only E or e is permitted for the REAL exponent. */ 11/* Legacy Fortran-fronted exporters (I-DEAS, CADAM) emit D-exponent. */ 12#1=DIRECTION('',(1.0D5,0.,0.)); 13#2=CARTESIAN_POINT('origin',(0.,0.,0.)); 14#3=VECTOR('v',#1,1.5D-3); 15#4=LINE('l',#2,#3); 16ENDSEC; 17END-ISO-10303-21;