]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: return error node when this fails during constexpr case
authorPhilip Herron <herron.philip@googlemail.com>
Fri, 18 Jul 2025 15:44:36 +0000 (16:44 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:56 +0000 (16:36 +0200)
commit1490b80bd143b8808678e9449b070d5f18ac588c
tree2ba5a03052310ebdef4a4b1f2f0e06bf9cc6b1c5
parent9076a8f688886de933d5f953855a3431d3e0a922
gccrs: return error node when this fails during constexpr case

Not adding the test case here we emit more errors than rustc for the error
type node so its just noisy and dejagnu is being a pain.

Fixes Rust-GCC#3933

gcc/rust/ChangeLog:

* backend/rust-compile-resolve-path.cc (ResolvePathRef::resolve): return error_mark_node

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/backend/rust-compile-resolve-path.cc