This issue tracker is closed. Please visit UPPAAL issue tracker at Github instead.

Bug 191 - Crash when using functions in initialisers
Summary: Crash when using functions in initialisers
Alias: None
Product: UPPAAL
Classification: Unclassified
Component: libutap (show other bugs)
Version: 3.5.9
Hardware: All All
: P2 normal
Assignee: Gerd Behrmann
Depends on:
Reported: 2005-08-23 16:36 CEST by Gerd Behrmann
Modified: 2005-10-05 19:46 CEST (History)
0 users

See Also:

Test case (638 bytes, text/plain)
2005-08-23 16:37 CEST, Gerd Behrmann

Note You need to log in before you can comment on or make changes to this bug.
Description Gerd Behrmann 2005-08-23 16:36:20 CEST
Functions can be called in initialisers, range declarations, template arguments or array size specifications, 
but this is only well-defined as long as the function is side-effect free and does only depend on constants. 
If it depends on non-constant variables, the type-checker should complain about this, but it doesn't. 
Instead UPPAAL crashes.
Comment 1 Gerd Behrmann 2005-08-23 16:37:19 CEST
Created attachment 55 [details]
Test case
Comment 2 Gerd Behrmann 2005-10-05 19:46:19 CEST
A fix has been checked into CVS.