diff --git a/include/fmt/base.h b/include/fmt/base.h index 8fdcea7ce4e0..ce71ad980236 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -740,7 +740,7 @@ class basic_specs { }; unsigned data_ = 1 << fill_size_shift; - static_assert(sizeof(data_) * CHAR_BIT >= 18, ""); + static_assert(sizeof(basic_specs::data_) * CHAR_BIT >= 18, ""); // Character (code unit) type is erased to prevent template bloat. char fill_data_[max_fill_size] = {' '};