[C++ PATCH] build_clone cleanup
authorNathan Sidwell <nathan@acm.org>
Tue, 15 Oct 2019 11:20:06 +0000 (11:20 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 15 Oct 2019 11:20:06 +0000 (11:20 +0000)
commit386c40778648fecf4807566d5254dec191d35dab
tree159f7184ec9acb86a40639f090c6486ffe9ecbb9
parent1c2e7cd91aaa0fa022c8f17f4d5db214439ef178
[C++ PATCH] build_clone cleanup

https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01069.html
build_clone is recursive when applied to a template, but I found the control flow confusing. this makes it clearer and moves some decls to their initializers.

* class.c (build_clone): Refactor to clarify recursiveness.

From-SVN: r276992
gcc/cp/ChangeLog
gcc/cp/class.c