This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5589: if (c > c++) is tested as yes by gcc !!!
- From: pme at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yann dot helleboid at wanadoo dot fr
- Date: 4 Feb 2002 21:50:06 -0000
- Subject: Re: c/5589: if (c > c++) is tested as yes by gcc !!!
- Reply-to: pme at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yann dot helleboid at wanadoo dot fr, gcc-gnats at gcc dot gnu dot org
Synopsis: if (c > c++) is tested as yes by gcc !!!
State-Changed-From-To: open->closed
State-Changed-By: pme
State-Changed-When: Mon Feb 4 13:50:06 2002
State-Changed-Why:
You are invoking undefined behavior. This is not a bug in
gcc, it is a bug in your code. I recommend that you find a
good introductory textbook on C.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5589