This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++ tests and targets without iconv


Some libstdc++ tests such as 17_intro/headers/all.cc include 
<ext/codecvt_specializations.h> unconditionally along with all the other 
library headers.  This header includes <iconv.h> unconditionally.  This 
fails for targets without this header.  This leads to:

FAIL: 17_intro/headers/all.cc (test for excess errors)
FAIL: 17_intro/headers/all_c++200x_compatibility.cc (test for excess errors)
FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)
FAIL: ext/headers.cc (test for excess errors)

Should these tests use dg-require-iconv or similar so they are disabled on 
such targets, should the tests only include 
<ext/codecvt_specializations.h> if _GLIBCXX_HAVE_ICONV, or should 
<ext/codecvt_specializations.h> condition out its contents unless 
_GLIBCXX_HAVE_ICONV?

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]