[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-03-14 Thread mueller at gcc dot gnu dot org
--- Comment #11 from mueller at gcc dot gnu dot org 2007-03-14 23:20 --- Fixed for 4.3. -- mueller at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-03-14 Thread mueller at gcc dot gnu dot org
--- Comment #10 from mueller at gcc dot gnu dot org 2007-03-14 23:17 --- Subject: Bug 30860 Author: mueller Date: Wed Mar 14 23:17:03 2007 New Revision: 122934 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122934 Log: 2007-03-15 Dirk Mueller <[EMAIL PROTECTED]> PR c

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-20 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2007-02-20 09:53 --- In reply to comment #4 The case that made me file this bug is changed overload resolution for a false argument vs. a true argument. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30860

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-19 Thread manu at gcc dot gnu dot org
--- Comment #8 from manu at gcc dot gnu dot org 2007-02-19 20:50 --- (In reply to comment #6) > there is an implicit value conversion, boolean "false" to address "0". I think > that is the definition of -Wconversion, no? > > anyway, I'll work on a patch. > Take a look at http://gcc.g

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-19 Thread gdr at cs dot tamu dot edu
--- Comment #7 from gdr at cs dot tamu dot edu 2007-02-19 20:49 --- Subject: Re: Should warn about boolean constant false used in pointer context "mueller at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: | there is an implicit value conversion, boolean "false" to address "0". I thi

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-19 Thread mueller at gcc dot gnu dot org
--- Comment #6 from mueller at gcc dot gnu dot org 2007-02-19 20:23 --- there is an implicit value conversion, boolean "false" to address "0". I think that is the definition of -Wconversion, no? anyway, I'll work on a patch. -- mueller at gcc dot gnu dot org changed: Wh

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-19 Thread mueller at gcc dot gnu dot org
-- mueller at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfi

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-19 Thread gdr at cs dot tamu dot edu
--- Comment #5 from gdr at cs dot tamu dot edu 2007-02-19 19:59 --- Subject: Re: Should warn about boolean constant false used in pointer context "manu at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: | No, it is not. And I don't think it should be warned by -Wconversion. After | a

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-19 Thread gdr at cs dot tamu dot edu
--- Comment #4 from gdr at cs dot tamu dot edu 2007-02-19 19:48 --- Subject: Re: Should warn about boolean constant false used in pointer context "pinskia at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: | I don't see why we should warn about a very valid and well defined and will

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-19 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2007-02-19 19:14 --- (In reply to comment #1) > manu, is this something already covered by your pending -Wconversion fixes? > No, it is not. And I don't think it should be warned by -Wconversion. After all, no value is changed during the

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-19 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-02-19 19:01 --- I don't see why we should warn about a very valid and well defined and will always work on every compiler. You want to warn about a specific coding style which I think is wrong in this case (and in the -Weffc++ case

[Bug c++/30860] Should warn about boolean constant false used in pointer context

2007-02-19 Thread mueller at gcc dot gnu dot org
--- Comment #1 from mueller at gcc dot gnu dot org 2007-02-19 16:43 --- manu, is this something already covered by your pending -Wconversion fixes? -- mueller at gcc dot gnu dot org changed: What|Removed |Added -