Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
749dbe97
Commit
749dbe97
authored
Mar 02, 2001
by
Martin Wierich
Browse files
bugfix: the compiler gave "index out of range" when an instance was declared
without the corresponding class being declared
parent
5b68f0b7
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend/check.icl
View file @
749dbe97
...
...
@@ -2134,12 +2134,14 @@ checkDclModule dcl_imported_module_numbers super_components imports_ikh componen
#
(
dcl_common
,
modules
,
hp_type_heaps
,
hp_var_heap
,
cs
)
=
checkCommonDefinitions
cIsADclModule
mod_index
dcl_common
modules
hp_type_heaps
hp_var_heap
cs
heaps
=
{
heaps
&
hp_type_heaps
=
hp_type_heaps
,
hp_var_heap
=
hp_var_heap
,
hp_expression_heap
=
hp_expression_heap
}
|
not
cs
.
cs_error
.
ea_ok
=
((
0
,
0
,
[]),
(
expl_imp_info
,
modules
,
icl_functions
,
heaps
,
cs
))
#!
nr_of_members
=
count_members
mod_index
dcl_common
.
com_instance_defs
dcl_common
.
com_class_defs
modules
#
nr_of_dcl_functions_and_instances
=
nr_of_dcl_functions
+
nr_of_members
heaps
=
{
heaps
&
hp_type_heaps
=
hp_type_heaps
,
hp_var_heap
=
hp_var_heap
,
hp_expression_heap
=
hp_expression_heap
}
(
nr_of_dcl_funs_insts_and_specs
,
rev_function_list
,
rev_special_defs
,
com_type_defs
,
com_class_defs
,
modules
,
heaps
,
cs
)
=
checkDclFunctions
mod_index
nr_of_dcl_functions_and_instances
mod_defs
.
def_funtypes
dcl_common
.
com_type_defs
dcl_common
.
com_class_defs
modules
heaps
cs
...
...
Write
Preview
Supports
Markdown
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