diff --git a/include/fmt/format.h b/include/fmt/format.h index 984c0122..bb5b7c43 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3773,8 +3773,6 @@ struct formatter< } private: - using arg_ref = internal::arg_ref; - internal::dynamic_format_specs specs_; }; diff --git a/test/format-test.cc b/test/format-test.cc index dce3240d..b290b00e 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1909,4 +1909,5 @@ TEST(FormatTest, FormatStringErrors) { EXPECT_ERROR("{}{1}", "cannot switch from automatic to manual argument indexing", int, int); + EXPECT_ERROR("{:s}", "invalid type specifier", int); }