From 98a7674369c363e4f79de4629eca5ea2523c6ede Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 1 Jan 2019 16:38:15 +0800 Subject: [PATCH] crimson: workaround an ICE of GCC this change works around the FTBFS on arm64: /home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/crimson/common/config_proxy.h:74:13: internal compiler error: in tsubst_decomp_names, at cp/pt.c:16537 for (auto& [obs, keys] : rev_obs) { ^~~ Please submit a full bug report, with preprocessed source if appropriate. it seems that this issue is a dup of https://bugzilla.redhat.com/show_bug.cgi?id=1639019 . Signed-off-by: Kefu Chai --- src/crimson/common/config_proxy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crimson/common/config_proxy.h b/src/crimson/common/config_proxy.h index 775df14f571b3..b5c84c123157b 100644 --- a/src/crimson/common/config_proxy.h +++ b/src/crimson/common/config_proxy.h @@ -71,8 +71,8 @@ class ConfigProxy : public seastar::peering_sharded_service const std::string &key) { rev_obs[obs].insert(key); }, nullptr); - for (auto& [obs, keys] : rev_obs) { - obs->handle_conf_change(proxy, keys); + for (auto& obs_keys : rev_obs) { + obs_keys.first->handle_conf_change(proxy, obs_keys.second); } }); }).finally([new_values] { -- 2.39.5