c++: refactor duplicate decls
authorNathan Sidwell <nathan@acm.org>
Mon, 2 Nov 2020 18:24:16 +0000 (10:24 -0800)
committerNathan Sidwell <nathan@acm.org>
Mon, 2 Nov 2020 18:34:31 +0000 (10:34 -0800)
commit9757d793f800a9ea1e35977b7e9e68d6f293e857
treef397ce912bf959d30e5f7f9d2dd78479fdbe6e54
parentf915e19e62a81b46c613b4d665e1d38ceee16991
c++: refactor duplicate decls

A couple of paths in duplicate decls dealing with templates and
builtins were overly complicated.  Fixing thusly.

gcc/cp/
* decl.c (duplicate_decls): Refactor some template & builtin
handling.
gcc/cp/decl.c