https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109918

--- Comment #9 from Andreas Schwab <sch...@linux-m68k.org> ---
This breaks building 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::Substitut\
ionArgumentMappings&)' 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

Reply via email to