------- 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 conversion. 

On the other hand, we give an error for:

void foo(const char *); 
void bar() { foo(1 != 0); }

error: cannot convert ‘bool’ to ‘const char*’ for argument ‘1’ to
‘void foo(const char*)’


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30860

Reply via email to