This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR c++/35602 Bogus warning with -Wsign-conversion
"Manuel LÃpez-IbÃÃez" <lopezibanez@gmail.com> writes:
> 2008/8/20 Ian Lance Taylor <iant@google.com>:
>>
>>> +namespace std
>>> +{
>>> + struct string
>>> + {
>>> + ~string();
>>> + string();
>>> + };
>>> +}
>>
>> Omit the namespace if you don't need it. It might be better to use a
>> class name other than string.
>
> The error is only produced when using std::string, so I need both.
That seems odd. Why is that?
Ian