[PATCH] D32332: Add support for transparent overloadable functions in clang

George Burgess IV via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 00:14:02 PDT 2017

george.burgess.iv added a comment.

Shortly after I pressed submit, I realized that this patch allows the following code if you tweak an assert to check for `overloadable` on the most recent redecl of a function:

  void foo(int);
  void foo(int) __attribute__((overloadable));
  void foo(float);
  void foo(float) __attribute__((overloadable));
  void foo(double);
  void foo(double) __attribute__((overloadable));

...Which is bad. I'll fix that soon. :)


More information about the cfe-commits mailing list