c++: refactor duplicate decls

2020-11-02 Thread Nathan Sidwell
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. applying to trunk nathan -- Nathan Sidwell diff --git i/gcc/cp/decl.c w/gcc/c

c++: refactor duplicate decls

2020-11-02 Thread Nathan Sidwell via Gcc-patches
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. applying to trunk nathan -- Nathan Sidwell : Facebook diff --git i/gcc/cp/de