Commit f75287f2 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

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
parent 41eed442
...@@ -119,7 +119,11 @@ static constexpr pretty_info pretty_parse( ...@@ -119,7 +119,11 @@ static constexpr pretty_info pretty_parse(
template <typename T, typename Tag> template <typename T, typename Tag>
struct pretty_name_zarray { 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 info = pretty_parse(Tag{}, raw.data);
static constexpr auto size = info.e - info.b; static constexpr auto size = info.e - info.b;
static constexpr auto zarray_() { static constexpr auto zarray_() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment