This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Enough already with the KDE bug!
- To: hymie at prolifics dot com
- Subject: Re: Enough already with the KDE bug!
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Wed, 31 Dec 1997 19:19:51 +0100
- CC: egcs-bugs at cygnus dot com, egcs at cygnus dot com
- References: <199712311516.KAA17112@calumny.jyacc.com>
> Enough with this bug report already. There's a patch for this
> available in the KDE sources. It's not legal C++.
Wait a second. Of course this is not legal C++: __typeof is not
legal C++.
> The union
> declares a new class, and it is not a friend of KProcess, so
> it has no access to the private names of KProcess. So the
> __typeof(status) in the union is illegal.
If so, whose bug is it? The KDE sources say
bool KProcess::normalExit()
{
return (pid != 0) && (!runs) && (WIFEXITED(status));
}
I cannot see a declaration of a class anywhere, here. Are you saying
you cannot apply the WIFEXITED macro to a private variable? This is
strange, the Solaris man page of WIFEXITED does mention such a
restriction.
So maybe you are saying the implementation of WIFEXITED in glibc is
wrong. Well, maybe. But why was the bug fix then in KDE and not in
glibc?
Also, please note that typeof is a GNU extension. Where in the info
pages does it say that typeof fails when passing non-accessible C++
members? You are not trying to access the value, you only want the
type.
Regards,
Martin