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: Wenum-promotion (PR7651 Define -Wextra strictly in terms of other warning flags)


On 07 Jan 2007 14:40:55 +0100, Gabriel Dos Reis
<gdr@integrable-solutions.net> wrote:
"Manuel LÃpez-IbÃÃez" <lopezibanez@gmail.com> writes:

| :ADDPATCH c++:
|
| This patch continues the effort to fix PR7651 [1].
|
| A new option -Wenum-promotion takes over the warning for an enumerator
| and a non-enumerator appearing in a conditional expression.

I would like to see this case instead covered by the conversion/coercion
warning switch.

Yes, I know you're trying to preserve existing practice; but we have
to keep in the fore that the current situation is not the result of
systematic principles, and now is a good to time to rationalize all
that (and thanks for your contribution in this area!).

That could be done but such patch depends on http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00799.html being approved first.

Also, would this warning make sense for the C front-end ?

Cheers,

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