This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/28290] [4.2 Regression] error: 'iconv_t' does not name a type
- From: "ro at techfak dot uni-bielefeld dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2006 20:17:26 -0000
- Subject: [Bug libstdc++/28290] [4.2 Regression] error: 'iconv_t' does not name a type
- References: <bug-28290-81@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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