Subject: Re: Questions about iconv.h
To: None <uebayasi@pultek.co.jp>
From: T.SHIOZAKI <tshiozak@netbsd.org>
List: tech-userlevel
Date: 10/28/2004 19:47:07
From: Masao Uebayashi <uebayasi@pultek.co.jp>
Subject: Re: Questions about iconv.h
Date: Thu, 28 Oct 2004 18:37:40 +0900 (JST)
Message-ID: <20041028.183740.607956730.uebayasi@pultek.co.jp>

> And this seems a GCC bug.
> 
> 	http://gcc.gnu.org/ml/gcc/2001-09/msg00546.html
> 

Not bug.  3rd paragraph of 15.1 of ISO C++ says:

The type of the throw-expression shall not be an incomplete type, or a
pointer or reference to an incomplete type, other than void*, const
void*, volatile void*, or const volatile void*.


> (No idea how to fix / work-around from me.)

+/* For throw/catch expression.  (c.f. ISO C++ 15.1/3, 15.3/1, 15.4/1) */
+#ifdef __cplusplus
+struct __tag_iconv_t {};
+#else
struct __tag_iconv_t;
+#endif
typedef struct __tag_iconv_t *iconv_t;


--
Takuya SHIOZAKI