Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
clean-compiler-and-rts
compiler
Commits
5dca600b
Commit
5dca600b
authored
Oct 30, 2019
by
johnvg@science.ru.nl
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add alternative to find_instance to prevent compiler crash if there are no instances for a class
parent
ab86763f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
frontend/overloading.icl
frontend/overloading.icl
+2
-0
No files found.
frontend/overloading.icl
View file @
5dca600b
...
...
@@ -324,6 +324,8 @@ where
|
FoundObject
instance_index
=
(
instance_index
,
context
,
uni_ok
,
type_heaps
,
coercion_env
)
=
find_instance_in_tree
co_types
default_instance_tree
defs
type_heaps
coercion_env
find_instance
co_types
IT_Empty
defs
type_heaps
coercion_env
=
(
ObjectNotFound
,
[],
True
,
type_heaps
,
coercion_env
)
find_instance_group
::
[
Type
]
!
SortedInstances
!{#
CommonDefs
}
!*
TypeHeaps
->
*(!
Bool
,![
Global
Int
],!*
TypeHeaps
)
find_instance_group
co_types
(
SI_Node
instances
=:[
this_inst_index
=:{
glob_object
,
glob_module
}:_]
left
right
)
defs
type_heaps
...
...
John van Groningen
@johnvg
mentioned in issue
#56 (closed)
·
Oct 30, 2019
mentioned in issue
#56 (closed)
mentioned in issue #56
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment