[Bug libstdc++/28290] [4.2 Regression] error: 'iconv_t' does not name a type
ro at techfak dot uni-bielefeld dot de
gcc-bugzilla@gcc.gnu.org
Mon Jul 10 20:17:00 GMT 2006
------- Comment #14 from ro at techfak dot uni-bielefeld dot de 2006-07-10 20:17 -------
Subject: Re: [4.2 Regression] error: 'iconv_t' does not name a type
pcarlini at suse dot de writes:
> It seemd to me that the best thing to do is adding the include on top of
> codecvt_specializations.h itself and removing it from the other places where it
> does currently appear (because a grep reveals that the iconv facilities are
> *not* used anywhere else (besides the testsuite), I would appreciate of you
> could double check...). Can you try that?
The compilation errors are gone with this change, but due to PR c++/28217,
I still get an ICE:
Index: codecvt_specializations.h
===================================================================
--- codecvt_specializations.h (revision 115313)
+++ codecvt_specializations.h (working copy)
@@ -38,6 +38,10 @@
* This file is a GNU extension to the Standard C++ Library.
*/
+#if _GLIBCXX_USE_ICONV
+# include <iconv.h>
+#endif
+
// XXX
// Define this here so codecvt.cc can have _S_max_size definition.
#define _GLIBCXX_USE_ENCODING_STATE 1
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28290
More information about the Gcc-bugs
mailing list