gcc visibility used by moz

Jason Merrill jason@redhat.com
Sat Jul 15 17:54:00 GMT 2006


Geoffrey Keating wrote:
> Jason Merrill <jason@redhat.com> writes:
>> Benjamin Smedberg wrote:

>>>> Also, do you agree with warning about a class with greater
>>>> visibility than its data members/bases?

>>> Sure... I would really like to disable this warning if possible,
>>> since it will be produced thousands of times in a mozilla build ;-)

>> I find that surprising, since it sounds like VC++ gives the same
>> warning about a dllexport class with a non-dllexport base.
> 
> I think that if the aim is to have VC++ compatibility, that should be
> separate from the 'right' solution.

Absolutely.  I didn't put in that warning because it was in VC++, but I 
wouldn't expect it to introduce new warnings moving code from VC++ to g++.

Jason



More information about the Gcc mailing list