gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

GCCRS crashes with SIGKILL on unclosed macro invocation

Open starbugs-qurong opened this issue 8 months ago • 1 comments

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

starbugs-qurong avatar Apr 09 '25 08:04 starbugs-qurong

Another minimal reproducer with an unclosed attribute also triggers GCCRS failure:

#[Ѕ

starbugs-qurong avatar Apr 09 '25 08:04 starbugs-qurong