[cfe-commits] r168847 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Sema/SemaDeclCXX.cpp test/SemaCXX/implicit-member-functions.cpp

Chandler Carruth chandlerc at google.com
Wed Nov 28 17:48:39 PST 2012


On Wed, Nov 28, 2012 at 5:34 PM, Richard Smith
<richard-llvm at metafoo.co.uk> wrote:
> Author: rsmith
> Date: Wed Nov 28 19:34:07 2012
> New Revision: 168847
>
> URL: http://llvm.org/viewvc/llvm-project?rev=168847&view=rev
> Log:
> The declaration of a special member can require overload resolution to be
> performed, to determine whether that special member is deleted or constexpr.
> That overload resolution process can in turn trigger the instantiation of a
> template, which can do anything, including triggering the declaration of that
> very same special member function. When this happens, do not try to recursively
> declare the special member -- that's impossible. Instead, only try to realise
> the truth. There is no special member.

I bow before you sir. Well done.



More information about the cfe-commits mailing list