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
- From: Ian Lance Taylor <iant at google dot com>
- To: Manuel LÃpez-IbÃÃez <lopezibanez at gmail dot com>
- Cc: "Gcc Patch List" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Aug 2008 07:52:54 -0700
- Subject: Re: PR c++/35602 Bogus warning with -Wsign-conversion
- References: <6c33472e0808161818o7ab74321q721b053633695abc@mail.gmail.com>
"Manuel LÃpez-IbÃÃez" <lopezibanez@gmail.com> writes:
> 2008-08-17 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> PR c++/35602
> * c-common.c (conversion_warning): Do not want for artificial
> expressions.
> testsuite/
> * g++.dg/warn/pr35602.C: New.
This is OK.
There is a typo in the ChangeLog entry: "want" => "warn".
> +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.
Thanks.
Ian