[PATCH] D50291: [C++] Delay checking of constexpr-ness for special members.

Nicolas Lesser via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 3 18:01:01 PDT 2018


Rakete1111 created this revision.
Rakete1111 added a reviewer: rsmith.

Specific class layouts meant that the constexpr-ness of a special member could only be decided after every special member was seen. However, this was at odds with the implementation, which checked the constexpr-ness for each special member in the order in which they were declared (hence that the bug only occurs when special members are ordered in a specific order).

This patch moves the checking of constexpr-ness after evaluating each special member.
This fixes https://llvm.org/pr38143


Repository:
  rC Clang

https://reviews.llvm.org/D50291

Files:
  include/clang/Sema/Sema.h
  lib/Sema/SemaDeclCXX.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50291.159149.patch
Type: text/x-patch
Size: 5988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180804/519d02a5/attachment.bin>


More information about the cfe-commits mailing list