Enough already with the KDE bug!
Joe Buck
jbuck@synopsys.com
Wed Dec 31 10:39:00 GMT 1997
> 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.
typeof, like sizeof, depends only on the type. But you can't take sizeof
an inaccessible member according to the C++ standard; it seems that
typeof should behave in the same way.
A private member is just that; client code is not supposed to be aware
of even the existence of private members. Given this, the behavior
should not be a surprise.
More information about the Gcc
mailing list