ICE in get_marker_predicate, at rust/typecheck/rust-hir-type-check-base.cc:527
Open
@P-E-P is already working on this.
Since Sep 2, 2025.
bug
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 230
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
Code
#[lang="sized"]
struct Bar<T> {}
Version information
5c3e2ad
Command
gccrs -frust-incomplete-and-experimental-compiler-do-not-use ./test.rs
Program output
crab1: internal compiler error: in get_marker_predicate, at rust/typecheck/rust-hir-type-check-base.cc:527
0x29abeb6 internal_error(char const*, ...)
../../gccrs/gcc/diagnostic-global-context.cc:517
0xb48036 fancy_abort(char const*, int, char const*)
../../gccrs/gcc/diagnostic.cc:1803
0x9195b1 Rust::Resolver::TypeCheckBase::get_marker_predicate(Rust::LangItem::Kind, unsigned long)
../../gccrs/gcc/rust/typecheck/rust-hir-type-check-base.cc:527
0xee6ed5 Rust::Resolver::TypeResolveGenericParam::apply_trait_bounds(Rust::HIR::TypeParam&, Rust::TyTy::ParamType*)
../../gccrs/gcc/rust/typecheck/rust-hir-type-check-type.cc:904
0xee73a1 Rust::Resolver::TypeResolveGenericParam::ApplyAnyTraitBounds(Rust::HIR::TypeParam&, Rust::TyTy::ParamType*)
../../gccrs/gcc/rust/typecheck/rust-hir-type-check-type.cc:837
0xf5abe1 Rust::Resolver::TypeCheckBase::resolve_generic_params(std::vector<std::unique_ptr<Rust::HIR::GenericParam, std::default_delete<Rust::HIR::GenericParam> >, std::allocator<std::unique_ptr<Rust::HIR::GenericParam, std::default_delete<Rust::HIR::GenericParam> > > > const&, std::vector<Rust::TyTy::SubstitutionParamMapping, std::allocator<Rust::TyTy::SubstitutionParamMapping> >&, bool, Rust::ABI)
../../gccrs/gcc/rust/typecheck/rust-hir-type-check-base.cc:517
0xedaea0 Rust::Resolver::TypeCheckItem::visit(Rust::HIR::StructStruct&)
../../gccrs/gcc/rust/typecheck/rust-hir-type-check-item.cc:257
0xed6990 Rust::Resolver::TypeCheckItem::Resolve(Rust::HIR::Item&)
../../gccrs/gcc/rust/typecheck/rust-hir-type-check-item.cc:59
0xed6990 Rust::Resolver::TypeCheckItem::Resolve(Rust::HIR::Item&)
../../gccrs/gcc/rust/typecheck/rust-hir-type-check-item.cc:45
0xe8fd5b Rust::Resolver::TypeResolution::Resolve(Rust::HIR::Crate&)
../../gccrs/gcc/rust/typecheck/rust-hir-type-check.cc:74
0xca20ba Rust::Session::compile_crate(char const*)
../../gccrs/gcc/rust/rust-session-manager.cc:685
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.