[LLVMbugs] [Bug 21280] New: operator overload resolution does too much work for enum types
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Oct 14 16:02:30 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21280
Bug ID: 21280
Summary: operator overload resolution does too much work for
enum types
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
If the only operands of user-defined type are of enumeration type, and we
didn't find *any* non-builtin candidates, we don't need to bother to form the
complete list of builtin candidates and select one; we can go straight to
picking a built-in candidate. For instance:
enum { a = 0, b = 0 };
enum { c = a + b };
... will perform overload resolution, but doesn't need to (once we notice there
are no viable user-declared overloads of operator+).
--
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/20141014/02cf582b/attachment.html>
More information about the llvm-bugs
mailing list