-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from stepcode/review/segfault
ap242 segfault
- Loading branch information
Showing
4 changed files
with
137 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ISO-10303-21; | ||
HEADER; | ||
FILE_DESCRIPTION((''),'2;1'); | ||
FILE_NAME('','',(''),(''),'','',''); | ||
FILE_SCHEMA(('select_segfault_2')); | ||
ENDSEC; | ||
DATA; | ||
|
||
#1 = drc(cdl((#2,#3))); | ||
#2 = dre(4.5); | ||
#3 = dre(2.0); | ||
|
||
ENDSEC; | ||
END-ISO-10303-21; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- bug exposed by an AP242 file | ||
SCHEMA select_segfault_2; | ||
ENTITY drc SUBTYPE OF ( gdr ); END_ENTITY; | ||
|
||
ENTITY gdr | ||
ABSTRACT SUPERTYPE OF ( ONEOF ( DRC ) ) | ||
SUBTYPE OF (sa); | ||
base: docd; | ||
END_ENTITY; | ||
|
||
ENTITY sa SUPERTYPE OF (ONEOF (gdr)); END_ENTITY; | ||
|
||
TYPE docd = SELECT ( cdl, d ); END_TYPE; | ||
TYPE cdl = LIST[2:?] OF dre; END_TYPE; | ||
TYPE d = REAL; END_TYPE; | ||
ENTITY dre; | ||
id: REAL; | ||
END_ENTITY; | ||
|
||
END_SCHEMA; |