This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ PATCH to constexpr handling of lambda this capture


The constexpr code rejects uses of 'this' in a constant-expression,
but that shouldn't apply to a lambda 'this' capture proxy, which can
have a constant value.

Tested x86_64-pc-linux-gnu, applying to trunk and 7.

Attachment: cx-this-capture.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]