gccrs
gccrs copied to clipboard
GCCRS crashes with SIGKILL on unclosed macro invocation
Summary
When compiling code with an unclosed macro delimiter (e.g. y![ without closing ]), GCCRS crashes with a fatal signal instead of producing a proper diagnostic message.
Reproducer
I tried this code:
y![
Does the code make use of any (1.49) nightly feature ?
- [ ] Nightly
Godbolt link
No response
Actual behavior
gccrs: fatal error: Killed signal terminated program crab1
Expected behavior
A syntax error message about unclosed delimiters.
GCC Version
14.0.1
Another minimal reproducer with an unclosed attribute also triggers GCCRS failure:
#[Ѕ