-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig fmt
Milestone
Description
Zig Version
0.15.0-dev.386+2e35fdd03
Steps to Reproduce and Observed Behavior
run zig fmt main.zig on:
// main.zig
fn main() void {
asm volatile (
\\
++ ""
:
: [args] "r" (args),
);
}The formatter hangs and starts leaking memory until OOM killer kills it or you kill it manually
The compiler itself is fine with it (not this minimal reproducible example) but the formatter specifically isn't. Example where the code compiles but the formatter crashes: link.
Also happens on 0.14.0
Expected Behavior
The formatter should format the file like normal and exit
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig fmt