aboutsummaryrefslogtreecommitdiff
path: root/gcc/digraph.cc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-09-29 07:38:48 -0700
committerNathan Sidwell <nathan@acm.org>2020-09-29 07:46:24 -0700
commitcc61827b55e7735a831e52f7ef093c409ddd607a (patch)
tree160ddf646c00b4bc3d618a817354240b925c18e4 /gcc/digraph.cc
parent39a27bb01aa223ce89946f0a4de6b60c4c0b03d2 (diff)
downloadgcc-cc61827b55e7735a831e52f7ef093c409ddd607a.zip
gcc-cc61827b55e7735a831e52f7ef093c409ddd607a.tar.gz
gcc-cc61827b55e7735a831e52f7ef093c409ddd607a.tar.bz2
c++: Identifier type value should not update binding
This simplification removes some unneeded behaviour in set_identifier_type_value_with_scope, which was updating the namespace binding. And causing update_binding to have to deal with meeting two implicit typedefs. But the typedef is already there, and there's no other way to have two such typedef's collide (we'll already have dealt with that in lookup_elaborated_type). So, let's kill this crufty code. gcc/cp/ * name-lookup.c (update_binding): We never meet two implicit typedefs. (do_pushdecl): Adjust set_identifier_type_value_with_scope calls. (set_identifier_type_value_with_scope): Do not update binding in the namespace-case. Assert it is already there.
Diffstat (limited to 'gcc/digraph.cc')
0 files changed, 0 insertions, 0 deletions