[cfe-dev] C++ language linkage problem

Dmitri Shubin sbn at tbricks.com
Mon Jul 15 01:59:38 PDT 2013


On 07/14/2013 11:51 PM, Seth Cantrell wrote:
> The issue is that  language linkage isn't part of a function type, and so the two functions appear to be declarations of the same function rather than overloads where one takes a pointer to a "C" linkage function and the other takes a pointer to a "C++" linkage function.
>
> The reason this error is occurring now is that language linkage support is improving; clang can diagnose an error where a function is declared different times with different linkages, but support is not yet good enough to figure out that these two declarations are of different functions.
>
> There's already a bug filed for this issue: http://llvm.org/bugs/show_bug.cgi?id=15563
Thanks for explanation!

These 2 bugs also seems related:
  - http://llvm.org/bugs/show_bug.cgi?id=6277
  - http://llvm.org/bugs/show_bug.cgi?id=12770



More information about the cfe-dev mailing list