Summary: | Function calls in declarations cause crash | ||
---|---|---|---|
Product: | UPPAAL | Reporter: | Gerd Behrmann <behrmann> |
Component: | Engine | Assignee: | Gerd Behrmann <behrmann> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.5.9 | ||
Hardware: | All | ||
OS: | All | ||
Architecture: |
Description
Gerd Behrmann
2005-08-19 22:06:20 CEST
A fixed has been checked into CVS. One problem remains: int f() { return 2; } int a[f()] = { 1, 2 }; is not allowed by the parser. This is a different problem, though: The parser is unable to evaluate f(), thus it cannot check that the initialiser has the correct length. Without the initialiser everything is fine. |