Recursive constant definition not properly detected, leading to assert #2780

This commit is contained in:
Christoffer Lerno
2026-01-20 18:28:13 +01:00
parent 888657cc97
commit 52afbdbde9
3 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
fn int main()
{
const A = x'1234' +++ (ichar[A]); // #error: The evaluation of this expression is recursive.
}