]> git.ipfire.org Git - thirdparty/gcc.git/commit
[C++ PATCH] build_clone cleanup
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Oct 2019 11:20:06 +0000 (11:20 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Oct 2019 11:20:06 +0000 (11:20 +0000)
commitb2b2baa0f02dcd0be96f306058f982ed73c86918
tree159f7184ec9acb86a40639f090c6486ffe9ecbb9
parentc586001b1a3f1dbe2039837abca38b1868e4c32d
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276992 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c