https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125404
--- Comment #2 from Andreas Schwab <[email protected]> --- Workaround for the rust failure: diff --git a/gcc/rust/lex/rust-token.cc b/gcc/rust/lex/rust-token.cc index a19bed5bc5b..391d18dab5b 100644 --- a/gcc/rust/lex/rust-token.cc +++ b/gcc/rust/lex/rust-token.cc @@ -248,12 +248,20 @@ Token::as_string () const if (get_type_hint () == CORETYPE_UNKNOWN) return get_str (); else - return get_str () + get_type_hint_str (); + { + std::string s = get_str (); + s += get_type_hint_str (); + return s; + } case FLOAT_LITERAL: if (get_type_hint () == CORETYPE_UNKNOWN) return get_str (); else - return get_str () + get_type_hint_str (); + { + std::string s = get_str (); + s += get_type_hint_str (); + return s; + } default: return get_str (); }
