[llvm-bugs] [Bug 25551] New: almost all calls to LookupSingleName are wrong
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 16 18:38:49 PST 2015
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: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151117/b5e1cec8/attachment.html>
More information about the llvm-bugs
mailing list