Looks like GCC didn't like the original specialization, try within namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316361
91177308-0d34-0410-b5e6-
96231b3b80d8
: Copied(Move.Copied), Moved(1 + Move.Moved) {}
};
} // namespace
-template <> struct llvm::format_provider<Recorder> {
+namespace llvm {
+template <> struct format_provider<Recorder> {
static void format(const Recorder &R, raw_ostream &OS, StringRef style) {
OS << R.Copied << "C " << R.Moved << "M";
}
};
+} // namespace
TEST(FormatVariadicTest, CopiesAndMoves) {
Recorder R;