// { dg-do compile } // { dg-require-normal-namespace "" } #include namespace std { // [iosfwd.syn] template struct char_traits; template<> struct char_traits; #if __cplusplus >= 202002L && defined __cpp_char8_t template<> struct char_traits; #endif #if __cplusplus >= 201103L template<> struct char_traits; template<> struct char_traits; #endif template<> struct char_traits; template class allocator; template class basic_ios; template class basic_streambuf; template class basic_istream; template class basic_ostream; template class basic_iostream; _GLIBCXX_BEGIN_NAMESPACE_CXX11 template class basic_stringbuf; template class basic_istringstream; template class basic_ostringstream; template class basic_stringstream; _GLIBCXX_END_NAMESPACE_CXX11 template class basic_filebuf; template class basic_ifstream; template class basic_ofstream; template class basic_fstream; #if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI template class basic_syncbuf; template class basic_osyncstream; #endif template class istreambuf_iterator; template class ostreambuf_iterator; typedef basic_ios ios; typedef basic_ios wios; typedef basic_streambuf streambuf; typedef basic_istream istream; typedef basic_ostream ostream; typedef basic_iostream iostream; typedef basic_stringbuf stringbuf; typedef basic_istringstream istringstream; typedef basic_ostringstream ostringstream; typedef basic_stringstream stringstream; #if __cplusplus > 202002L typedef basic_spanbuf spanbuf; typedef basic_ispanstream ispanstream; typedef basic_ospanstream ospanstream; typedef basic_spanstream spanstream; #endif typedef basic_filebuf filebuf; typedef basic_ifstream ifstream; typedef basic_ofstream ofstream; typedef basic_fstream fstream; #if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI typedef basic_syncbuf syncbuf; typedef basic_osyncstream osyncstream; #endif typedef basic_streambuf wstreambuf; typedef basic_istream wistream; typedef basic_ostream wostream; typedef basic_iostream wiostream; typedef basic_stringbuf wstringbuf; typedef basic_istringstream wistringstream; typedef basic_ostringstream wostringstream; typedef basic_stringstream wstringstream; #if __cplusplus > 202002L typedef basic_spanbuf wspanbuf; typedef basic_ispanstream wispanstream; typedef basic_ospanstream wospanstream; typedef basic_spanstream wspanstream; #endif typedef basic_filebuf wfilebuf; typedef basic_ifstream wifstream; typedef basic_ofstream wofstream; typedef basic_fstream wfstream; #if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI typedef basic_syncbuf wsyncbuf; typedef basic_osyncstream wosyncstream; #endif template class fpos; typedef fpos streampos; typedef fpos wstreampos; #if __cplusplus >= 202002L typedef fpos u8streampos; #endif #if __cplusplus >= 201103L typedef fpos u16streampos; typedef fpos u32streampos; #endif }