This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/33734] iconv_t must not be assumed to be a pointer
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2007 10:26:18 -0000
- Subject: [Bug libstdc++/33734] iconv_t must not be assumed to be a pointer
- References: <bug-33734-1068@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-10-11 10:26 -------
It cannot be a coumpounded type because of the definition of iconv_open which
says it returns -1 for a falure.
"
Otherwise iconv_open() returns (iconv_t)-1 and sets errno to indicate the
error.
"
>From http://www.opengroup.org/onlinepubs/007908799/xsh/iconv_open.html
Thanks,
Andrew Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33734