Values were inserted in the label namespace instead of the value
namespace this lead to several bugs.
gcc/rust/ChangeLog:
* resolve/rust-late-name-resolver-2.0.cc (Late::visit): Change the
namespace for values from "label" to "values".
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
// do we insert in labels or in values
// but values does not allow shadowing... since functions cannot shadow
// do we insert functions in labels as well?
- new_label (identifier.get_ident (), identifier.get_node_id ());
+ auto ok
+ = ctx.values.insert (identifier.get_ident (), identifier.get_node_id ());
+
+ rust_assert (ok);
}
void