This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/28290] [4.2 Regression] error: 'iconv_t' does not name a type



------- 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


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