This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11658] New: Wrong error message
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jul 2003 11:53:56 -0000
- Subject: [Bug c/11658] New: Wrong error message
- 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=11658
Summary: Wrong error message
Product: gcc
Version: 3.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bonzini at gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
This error has been wrong for a long time. It gives an erroneous "wrong
arguments to binary !=" even though there is no != in the source code.
The distilled test case is extremely simple:
struct a {
};
int
bug(struct a *m)
{
return (*m || 1);
}
Thank you very much,
Paolo