Menu

#1898 "pointer types incompatible", but they shouldn't

closed-fixed
Ben Shi
None
Front-end
5
2015-03-11
2011-12-21
No

For support/regression/tests/gcc-torture-execute-const-addr-expr-1.c I get the error message "error 129: pointer types incompatible" in the mcs51-huge, mcs51-large, ds390 and hc08 port (all other ports are unaffected) in current svn (revision #7117). To reproduce remove the #if 0 in that file. I do not see why the types should be incompatible. They look like normal pointers to int to me.

Philipp

Discussion

  • Erik Petrich

    Erik Petrich - 2012-03-28

    The AST for the initial value does not conform to a format that initValPointer() knows how to handle.

     
  • Ben Shi

    Ben Shi - 2015-03-11

    Fixed in reversion #9192.

     
  • Ben Shi

    Ben Shi - 2015-03-11
    • status: open --> closed-fixed
    • assigned_to: Ben Shi
    • Category: --> Front-end
     

Log in to post a comment.