-
Notifications
You must be signed in to change notification settings - Fork 6
bug: recursive #includes without #pragma once cause a stack overflow #629
Copy link
Copy link
Open
Labels
A-parserRelating to the lexer or parserRelating to the lexer or parserA-zppRelating to the preprocessor and includesRelating to the preprocessor and includesE-help-wantedCall for participation: Help is wanted!Call for participation: Help is wanted!P-highThe bug disrupts many use cases of the compilerThe bug disrupts many use cases of the compilerT-bugSomething isn't working (use type: ice for panics)Something isn't working (use type: ice for panics)
Metadata
Metadata
Assignees
Labels
A-parserRelating to the lexer or parserRelating to the lexer or parserA-zppRelating to the preprocessor and includesRelating to the preprocessor and includesE-help-wantedCall for participation: Help is wanted!Call for participation: Help is wanted!P-highThe bug disrupts many use cases of the compilerThe bug disrupts many use cases of the compilerT-bugSomething isn't working (use type: ice for panics)Something isn't working (use type: ice for panics)
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Ready
Before we begin...
What happened?
When a file includes itself and does not have
#pragma onceset, then a stack overflow results.What version of Zirco are you running?
zrc_cli 0.1.0 (commit unknown, release build, macos [aarch64])
(25d8172 via Nix)
How can this bug be reproduced?
file.zrWhat behavior did you expect?
An error for recursive includes, or some better diagnostic
What actually happened?
Other Context
No response