From f75287f227a07ea0720a39f1200fd4a915bef5ec Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Wed, 10 Apr 2019 14:40:52 -0700 Subject: [PATCH] Address gcc-5.3 ice in pretty_name (#1106) Summary: [Folly] Address gcc-5.3 ice in `pretty_name`. Fixes #1105. Pull Request resolved: https://github.com/facebook/folly/pull/1106 Reviewed By: Orvid Differential Revision: D14864700 fbshipit-source-id: bd336135c8c39daca63e2a23fa5e9ea8589dd067 --- folly/lang/Pretty.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/folly/lang/Pretty.h b/folly/lang/Pretty.h index b59d9501aef..db12f664675 100644 --- a/folly/lang/Pretty.h +++ b/folly/lang/Pretty.h @@ -119,7 +119,11 @@ static constexpr pretty_info pretty_parse( template struct pretty_name_zarray { - static constexpr auto raw = pretty_raw(Tag{}); + static constexpr auto raw_() { + constexpr auto const raw_ = pretty_raw(Tag{}); + return raw_; + } + static constexpr auto raw = raw_(); // indirection b/c of gcc-5.3 ice, gh#1105 static constexpr auto info = pretty_parse(Tag{}, raw.data); static constexpr auto size = info.e - info.b; static constexpr auto zarray_() {