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]

[Bug c/12509] New: incorrect error message with struct passed to if()/while()


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()


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