diff --git a/include/iomanip b/include/iomanip
index a5042c7..ffde746 100644
--- a/include/iomanip
+++ b/include/iomanip
@@ -515,7 +515,7 @@ put_time(const tm* __tm, const _CharT* __fmt)
 #if _LIBCPP_STD_VER > 11
 
 template <class _CharT, class _Traits, class _ForwardIterator>
-std::basic_ostream<_CharT, _Traits> &
+basic_ostream<_CharT, _Traits> &
 __quoted_output ( basic_ostream<_CharT, _Traits> &__os, 
         _ForwardIterator __first, _ForwardIterator __last, _CharT __delim, _CharT __escape )
 {
diff --git a/test/input.output/iostream.format/std.manip/forwarddecl.pass.cpp b/test/input.output/iostream.format/std.manip/forwarddecl.pass.cpp
new file mode 100644
index 0000000..b20d38e
--- /dev/null
+++ b/test/input.output/iostream.format/std.manip/forwarddecl.pass.cpp
@@ -0,0 +1,17 @@
+//===----------------------------------------------------------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <iomanip>
+
+namespace std { template <typename C, typename CT> class basic_ostream; }
+#include <iomanip>
+
+int main()
+{
+}
