[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invalid code in _G_config.h
From: |
Andreas Jaeger |
Subject: |
Re: Invalid code in _G_config.h |
Date: |
Mon, 14 Jan 2002 15:53:58 +0100 |
User-agent: |
Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) |
"John H. Spicer" <address@hidden> writes:
> The version of _G_config.h that is included in RedHat 7.2 contains the
> following code:
>
And before that code we do an include of <gconv.h>
> typedef union
> {
> struct __gconv_info __cd;
> struct
> {
> struct __gconv_info __cd;
> struct __gconv_step_data __data;
> } __combined;
> } _G_iconv_t;
>
> This note the use of __gconv_info in the struct. This is prohibited by
> the C99 standard (6.7.2.1), which says:
>
> [#2] A structure or union shall not contain a member with
> incomplete or function type (hence, a structure shall not
> contain an instance of itself, but may contain a pointer to
> an instance of itself), except that the last member of a
> structure with more than one named member may have
> incomplete array type; such a structure (and any union
> containing, possibly recursively, a member that is such a
> structure) shall not be a member of a structure or an
> element of an array.
But __gconv_info is declared in <gconv.h>.
I don't understand the problem you see, please give some more details,
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj