Menu

#1908 compare operand cannot be struct/union

closed-fixed
Ben Shi
None
Front-end
5
2016-02-05
2012-01-14
No

When uncommenting the two commented memchr() tests at the end of memory.c I get error messages "compare operand cannot be struct/union", "comparing type unsigned-char [4] fixed to type void generic* fixed". However, IMO, according to the C11 standard, 6.3.2.1, the array should be converted to unsigned char*, which, according to the C11 standard, 6.5.9 should be converted to void *, so we are really just comparing two void *.

Philipp

Discussion

  • Ben Shi

    Ben Shi - 2015-03-25
    • Category: --> Front-end
     
  • Ben Shi

    Ben Shi - 2016-02-05
    • status: open --> closed-fixed
    • assigned_to: Ben Shi
     
  • Ben Shi

    Ben Shi - 2016-02-05

    Fixed in reversion #9497.

     

Log in to post a comment.