c++: Don't add enums to class's decl_list
authorNathan Sidwell <nathan@acm.org>
Wed, 22 Jul 2020 15:38:58 +0000 (08:38 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 22 Jul 2020 15:43:26 +0000 (08:43 -0700)
commit6e1e0decc9e17a4283d1b5508e892be5215b8ab9
tree2e32971813a1d65d01c41b8ef8824da11457627a
parent7be9b276b441dd8b33283c2bc36906e94b569806
c++: Don't add enums to class's decl_list

We don't need to add CONST_DECLs to a template decl's decl list.  Also made the
code flow a bit clearer.

gcc/cp/
* class.c (maybe_add_class_template_decl_list): Don't add CONST_DECLs.
gcc/cp/class.c