]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not crash on empty macros expand. Fixes #1712
authorLyra <teromene@teromene.fr>
Tue, 24 Jan 2023 13:15:42 +0000 (14:15 +0100)
committerLyra <teromene@teromene.fr>
Tue, 24 Jan 2023 14:05:09 +0000 (15:05 +0100)
commitfc0c03dcf756c89694845484abd7d74ed080fdb6
treed728769a2cdced99b4b321063e7c786591a1e33f
parent01c232573e8d9d9fac47ebfee8459e3b493ce278
Do not crash on empty macros expand. Fixes #1712

This commit fixes a compiler crash when expanding an empty macro into an existing AST.

Signed-off-by: Lyra Karenai <teromene@teromene.fr>
gcc/rust/expand/rust-macro-expand.cc
gcc/testsuite/rust/compile/macro45.rs [new file with mode: 0644]