diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-11-03 08:39:47 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-11-03 08:49:26 -0800 |
commit | 1c8b8efa5becb70e04216a60021b835387ffea4e (patch) | |
tree | 9db051ab6852eeebb12c5271cfea6b2ab63e3b9f /gcc/cp/class.c | |
parent | 770ec066b8b5d70921dfab9fcd1bbb87abeb0dc5 (diff) | |
download | gcc-1c8b8efa5becb70e04216a60021b835387ffea4e.zip gcc-1c8b8efa5becb70e04216a60021b835387ffea4e.tar.gz gcc-1c8b8efa5becb70e04216a60021b835387ffea4e.tar.bz2 |
c++: A couple of template instantiation cleanups
I noticed that we were handling lambda extra scope during template
instantiation in a different order to how we handle the non-template
case. Reordered that for consistency. Also some more RAII during
template instantiation.
gcc/cp/
* pt.c (tsubst_lambda_expr): Reorder extra-scope handling to match
the non-template case.
(instantiate_body): Move a couple of declarations to their
initializers.
Diffstat (limited to 'gcc/cp/class.c')
0 files changed, 0 insertions, 0 deletions