[PATCH] D24113: Allow implicit conversions between incompatible pointer types in overload resolution in C.

George Burgess IV via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 6 14:57:53 PDT 2016

george.burgess.iv marked an inline comment as done.
george.burgess.iv added a comment.

Thanks for the heads-up!

I'm assuming that below is an example of code that this patch broke?

  void foo(int *a, int) __attribute__((overloadable));
  void foo(unsigned int *a, unsigned int) __attribute__((overloadable));
  void callFoo() {
    unsigned int i;
    foo(&i, 0u); // fine.
    foo(&i, 0); // now-ambiguous overload.



More information about the cfe-commits mailing list