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 :). vedant
infinite-recursion-overload.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
