https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93590
Bug ID: 93590 Summary: [diagnostic] The header <codecvt> is deprecated since C++17, but no warning for #include-ing it Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: alisdairm at me dot com Target Milestone: --- C++ currently has two deprecated C++ headers, <codecvt> and <strstream>. For quite a while, gcc has warned on #include <strstream> with: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp] It seems inconsistent to not get the same warning for #include <codecvt>, at least if the language dialect is C++17 or later.