[PATCH] Sema: Fix spurious 'infinite recursion' warning for overloaded functions
vsk at apple.com
Wed Jul 29 16:41:48 PDT 2015
Sema::checkRecursiveFunction() currently cannot tell overloaded functions apart.
This results in spurious warnings -- clang claims that a function is infinitely recursive when it in fact just calls a different function. The attached patch fixes the problem by keeping the original FunctionDecl around, instead of switching to the 'canonical' decl.
I don't have commit rights, so I'd appreciate someone taking a look at the patch and guiding it into trunk :).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1562 bytes
Desc: not available
More information about the cfe-commits