Opened 13 years ago
Closed 12 years ago
#1807 closed defect (fixed)
Let assert() trigger during initialization
| Reported by: | Martin Sjölund | Owned by: | Lennart Ochel |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.0 |
| Component: | Run-time | Version: | |
| Keywords: | Cc: |
Description
The following code should trigger an assertion during initialization, but does not!
loadString("model M
parameter Real p(fixed=false);
initial algorithm
assert(false, \"ass failed\");
p := 17.0;
end M;");getErrorString();
simulate(M);
val(p,43);
Change History (8)
comment:1 by , 13 years ago
| Status: | new → accepted |
|---|
comment:2 by , 13 years ago
| Owner: | changed from to |
|---|---|
| Status: | accepted → assigned |
comment:3 by , 13 years ago
comment:5 by , 13 years ago
Sure – but it is not on top of my todo list. Should I increase the priority for some reason?
comment:6 by , 13 years ago
Well, that or change the ticket priority from blocker ;) If it blocks 1.9.0 release, we cannot make the release before it works...
comment:7 by , 13 years ago
| Priority: | blocker → high |
|---|
comment:8 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

Note that the "set_struct" macro has to be re-written a bit to use with C++ intead of C, because "x = (FILE_INFO){...}" is not valid C++. That is, casting of a compound literal is not allowed.