https://llvm.org/bugs/show_bug.cgi?id=25551
Bug ID: 25551 Summary: almost all calls to LookupSingleName are wrong Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: richard-l...@metafoo.co.uk CC: llvm-bugs@lists.llvm.org Classification: Unclassified LookupSingleName does something very odd: if lookup finds an overload set of functions, it acts exactly like lookup found nothing. This results in almost every single caller of this function doing the wrong thing in that case (ranging from misdiagnosing problems to accepting invalid code). Example: int m(); enum { m }; // error int n(); int n(int); enum { n }; // accepted! -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs