Description
While working on the Pr #607 scountovf.layout generation, I encountered a failure in the IDL compiler when processing code that included multiple nested when statements along with some unexpected characters (likely artifacts).
After cleaning the when statements and removing the unexpected characters, the issue no longer occurred, and all tests passed.
However, the compiler's inability to handle the original code gracefully may point to a parsing or robustness issue worth investigating.
Steps to Reproduce:
- Include deeply nested when statements in the layout.
- Use code with artifacts or special/unexpected characters.
- Attempt to compile using the IDL compiler.
- Observe the failure or crash.
Expected Behavior:
The compiler should either:
Handle the malformed input gracefully, or Fail with a clear and informative error message indicating the problem.
Actual Behavior:
The test fails without any clear indication of the root cause. Once the problematic lines are cleaned or restructured, the failure disappears.
Additional Notes:
The exact lines causing the issue were:
when (...) { ... }