c++/4486: incorrect evaluation of boolean expressions

nathan@gcc.gnu.org nathan@gcc.gnu.org
Sat Dec 15 10:54:00 GMT 2001


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



More information about the Gcc-prs mailing list