Skip to content

Commit

Permalink
Address gcc-5.3 ice in pretty_name (#1106)
Browse files Browse the repository at this point in the history
Summary:
[Folly] Address gcc-5.3 ice in `pretty_name`.

Fixes #1105.

Pull Request resolved: #1106

Reviewed By: Orvid

Differential Revision: D14864700

fbshipit-source-id: bd336135c8c39daca63e2a23fa5e9ea8589dd067
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Apr 10, 2019
1 parent 41eed44 commit f75287f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion folly/lang/Pretty.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ static constexpr pretty_info pretty_parse(

template <typename T, typename Tag>
struct pretty_name_zarray {
static constexpr auto raw = pretty_raw<T>(Tag{});
static constexpr auto raw_() {
constexpr auto const raw_ = pretty_raw<T>(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_() {
Expand Down

0 comments on commit f75287f

Please sign in to comment.