This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR c++/35602 Bogus warning with -Wsign-conversion


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]