This is the mail archive of the gcc@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: -Wconversion versus libstdc++


On Thu, 18 Jan 2007, Manuel López-Ibáñez wrote:

| On 18/01/07, Gabriel Dos Reis <gdr@cs.tamu.edu> wrote:
| > On Wed, 17 Jan 2007, Manuel López-Ibáñez wrote:
| >
| > | On 17/01/07, Paolo Carlini <pcarlini@suse.de> wrote:
| > | > ... thanks a lot Gaby both for your practical and theoretical
| > | > investigations into this issue, both right to the point! Now, in my
| > | > opinion, we should simply remove the bits about signed -> unsigned from
| > | > -Wconversion.
| > | >
| > |
| > | I am not sure I am following the conversation.
| >
| > here it is in pseudo-code.
| >
| >    int x = some value;
| >    // ...
| >    unsigned y = x  // please don't spit noise here
| >
|
| Does that apply also to:
|
| unsigned int y = -10;

Yes.

-- Gaby


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