This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-Wconversion is very poor
- From: Lisp2D <lisp2d at lisp2d dot net>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 23 Mar 2011 10:58:04 -0700 (PDT)
- Subject: -Wconversion is very poor
I've turned on all warnings to have clean program.
Turn on -Wconversion but it will not care about BIG trouble in C++:
conversion.
class A{
public:
A(unsigned int){}
};
class B{
public:
B(A){}
};
B b(-1); //OK without warnings
int main(void){}
----
-1 => A(FF..FF) => B(FF..FF)
I want to see all program like:
B b(A(-1));
Which warning I must to set?
--
View this message in context: http://old.nabble.com/-Wconversion-is-very-poor-tp31222297p31222297.html
Sent from the gcc - Dev mailing list archive at Nabble.com.