Skip to content

The zig compiler never stops #24251

Open
Open
@sdzx-1

Description

@sdzx-1

Zig Version

0.14.1

Steps to Reproduce and Observed Behavior

code

Steps to reproduce:

  1. git clone -b bug https://github.com/sdzx-1/polystate-examples.git
  2. cd polystate-examples
  3. zig build

The compiler will never stop.

Expected Behavior

I would say the compiler is behaving correctly here, I have created an infinite recursive state and it has indeed looped infinitely.
A more detailed explanation

I'm curious, is there any way to set a maximum value for such a loop at the compiler level?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions