This is the mail archive of the gcc-bugs@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: c++/4486: incorrect evaluation of boolean expressions


Synopsis: incorrect evaluation of boolean expressions

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sat Dec 15 10:54:36 2001
State-Changed-Why:
    user error. Your synopsis does not match your code. The
    code is
    	bool var = whatever;
    	for () {
    	bool var = var && somethingelse;
    	}
    that is causing a read of an uninitalized variable.
    with -Wall and -O you should get a warning about that.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4486


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