https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117117
Bug ID: 117117 Summary: [15 regression] rust build fails Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sch...@linux-m68k.org Blocks: 109918 Target Milestone: --- r15-4282-g60163c85730e6b breaks the build of the rust compiler. In file included from ../../gcc/rust/typecheck/rust-tyty.h:28, from ../../gcc/rust/backend/rust-mangle.h:21, from ../../gcc/rust/backend/rust-mangle.cc:19: ../../gcc/rust/typecheck/rust-tyty-subst.h:408:21: error: 'virtual Rust::TyTy::BaseType* Rust::TyTy::SubstitutionRef::handle_substitions(Rust::TyTy::SubstitutionArgumentMappings&)' was hidden [-Werror=overloaded-virtual=] 408 | virtual BaseType *handle_substitions (SubstitutionArgumentMappings &mappings) | ^~~~~~~~~~~~~~~~~~ ../../gcc/rust/typecheck/rust-tyty.h:761:3: note: by 'virtual Rust::TyTy::ADTType* Rust::TyTy::ADTType::handle_substitions(Rust::TyTy::SubstitutionArgumentMappings&)' 761 | handle_substitions (SubstitutionArgumentMappings &mappings) override final; | ^~~~~~~~~~~~~~~~~~ ../../gcc/rust/typecheck/rust-tyty-subst.h:408:21: error: 'virtual Rust::TyTy::BaseType* Rust::TyTy::SubstitutionRef::handle_substitions(Rust::TyTy::SubstitutionArgumentMappings&)' was hidden [-Werror=overloaded-virtual=] 408 | virtual BaseType *handle_substitions (SubstitutionArgumentMappings &mappings) | ^~~~~~~~~~~~~~~~~~ ../../gcc/rust/typecheck/rust-tyty.h:873:3: note: by 'virtual Rust::TyTy::FnType* Rust::TyTy::FnType::handle_substitions(Rust::TyTy::SubstitutionArgumentMappings&)' 873 | handle_substitions (SubstitutionArgumentMappings &mappings) override final; | ^~~~~~~~~~~~~~~~~~ ../../gcc/rust/typecheck/rust-tyty-subst.h:408:21: error: 'virtual Rust::TyTy::BaseType* Rust::TyTy::SubstitutionRef::handle_substitions(Rust::TyTy::SubstitutionArgumentMappings&)' was hidden [-Werror=overloaded-virtual=] 408 | virtual BaseType *handle_substitions (SubstitutionArgumentMappings &mappings) | ^~~~~~~~~~~~~~~~~~ ../../gcc/rust/typecheck/rust-tyty.h:1033:3: note: by 'virtual Rust::TyTy::ClosureType* Rust::TyTy::ClosureType::handle_substitions(Rust::TyTy::SubstitutionArgumentMappings&)' 1033 | handle_substitions (SubstitutionArgumentMappings &mappings) override final; | ^~~~~~~~~~~~~~~~~~ ../../gcc/rust/typecheck/rust-tyty-subst.h:408:21: error: 'virtual Rust::TyTy::BaseType* Rust::TyTy::SubstitutionRef::handle_substitions(Rust::TyTy::SubstitutionArgumentMappings&)' was hidden [-Werror=overloaded-virtual=] 408 | virtual BaseType *handle_substitions (SubstitutionArgumentMappings &mappings) | ^~~~~~~~~~~~~~~~~~ ../../gcc/rust/typecheck/rust-tyty.h:1576:3: note: by 'virtual Rust::TyTy::ProjectionType* Rust::TyTy::ProjectionType::handle_substitions(Rust::TyTy::SubstitutionArgumentMappings&)' 1576 | handle_substitions (SubstitutionArgumentMappings &mappings) override final; | ^~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[3]: *** [../../gcc/rust/Make-lang.in:433: rust/rust-mangle.o] Error 1 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109918 [Bug 109918] [12/13/14 Regression] Unexpected -Woverloaded-virtual with virtual conversion operators