This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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, Paolo Carlini wrote:

| Manuel --
|
| > I read it and still don't get it. We know we should not warn about
| > system headers but we do and that is a known bug. So again, why is
| > libstdc++ using Wconversion at all?
|
| I appreciate your help with this issue, and I'm confident that we'll
| soon converge to a nice solution. Thanks, really.
|
| That said, frankly, I'm finding your saying, multiple times, "why is
| libstdc++ using Wconversion at all" particularly misleading, distracting
| and, well, annoying: libstdc++ is not using anything, by itself,
| certainly is not using Wconversion at .so and .a build time.

It is troublesome that Manuel is so definitive, when in fact, he does
not seem to understand the PR and its implications.

| The problem
| is that **the user of the library** may certainly compile **his own**
| code including libstdc++ headers passing a -Wconversion switch, or any
| other obscure request for warning. Then, given the bugginess of the
| pragma, which you correctly reminded (I just filed C++/30500 for that),
| warnings will be spilled from the libstdc++ headers to his face. He will
| be totally confused.

The pragma thing will be fixed; however, we will still be left with
unhelful warning for what has become idiomatic because of the way C++
tends to see sequences.

-- Gaby


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