This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12509] New: incorrect error message with struct passed to if()/while()
- From: "mrnobo1024 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2003 19:55:07 -0000
- Subject: [Bug c/12509] New: incorrect error message with struct passed to if()/while()
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12509
Summary: incorrect error message with struct passed to
if()/while()
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mrnobo1024 at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
with the program
struct asdf { };
int main(void) {
struct asdf *p;
while(*p) {
}
}
gcc says "test.i:4: invalid operands to binary !=" even though there's no !=,
the problem is a bad type being used in while()