Opened 13 years ago
Last modified 7 years ago
#1736 closed defect
Undeclared components in if equation's false branch are not checked — at Version 1
Reported by: | Peter Aronsson | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: | Peter Aronsson |
Description (last modified by )
The following model doesn't produce any error message when checking (v1.8.0).
model test parameter Boolean bool=false; Real x; equation if bool then der(x)=B; else der(x)=4; end if; end test;
It should report an error that B is undeclared!
Change History (1)
comment:1 by , 12 years ago
Cc: | petar, → petar |
---|---|
Description: | modified (diff) |
Owner: | changed from | to
Status: | new → accepted |
Note:
See TracTickets
for help on using tickets.
I know for a fact that illegal expressions are in parameter-false branches in some versions of MSL. Since we support different language standards in flags, maybe we can disable this for Modelica 3. I will run the testsuite and see.