diff options
author | Lyra <teromene@teromene.fr> | 2023-01-24 14:15:42 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-04-06 10:47:17 +0200 |
commit | cb42610bfbabdbd78a1a92eff4905551ecca8932 (patch) | |
tree | fa752a2694a2ae40b435371640ccb42f729f77e9 /gcc/rust/util/rust-operators.h | |
parent | 910e7e0a9586add4b6e1229e576e4f870c2ae030 (diff) | |
download | gcc-cb42610bfbabdbd78a1a92eff4905551ecca8932.zip gcc-cb42610bfbabdbd78a1a92eff4905551ecca8932.tar.gz gcc-cb42610bfbabdbd78a1a92eff4905551ecca8932.tar.bz2 |
gccrs: Do not crash on empty macros expand. Fixes #1712
This commit fixes a compiler crash when expanding an empty macro into an existing AST.
gcc/rust/ChangeLog:
* expand/rust-macro-expand.cc (transcribe_expression): Fix ICE when expanding
empty macros.
gcc/testsuite/ChangeLog:
* rust/compile/macro45.rs: New test.
Signed-off-by: Lyra Karenai <teromene@teromene.fr>
Diffstat (limited to 'gcc/rust/util/rust-operators.h')
0 files changed, 0 insertions, 0 deletions