[PATCH] D65695: Implements CWG 1601 in [over.ics.rank/4.2]

Mark de Wever via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 3 02:58:55 PDT 2019


Mordante created this revision.
Mordante added a reviewer: rsmith.
Mordante added a project: clang.

The overload resolution for enums with a fixed underlaying type has changed in the C++14 standard. This patch implements the new rule.

      

Note: I don't have access to the CWG 1601 paper, but based on https://en.cppreference.com/w/cpp/language/overload_resolution I applied the fix retroactively to C++11.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65695

Files:
  clang/lib/Sema/SemaOverload.cpp
  clang/test/CXX/drs/dr16xx.cpp
  clang/test/CXX/drs/dr6xx.cpp
  clang/www/cxx_dr_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65695.213185.patch
Type: text/x-patch
Size: 3665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190803/f71a8b22/attachment.bin>


More information about the cfe-commits mailing list