[cfe-commits] [Patch 3 of 5] Proposed fix for PR12850

Andy Gibbs andyg1001 at hotmail.co.uk
Wed Aug 22 09:28:53 PDT 2012


Hi,

Attached here is the third of five patches for PR12850.

This patch follows on from the last and actually wires the functionality
of the second patch into HandleFunctionCall inside ExprConstant.cpp.  In
addition, it provides the extra diagnostic where a circular dependency
is produced, as in the following example code:

constexpr int loop() {
  return loop();
}

(There is a more involved example in the test-cases.)

At the moment, as noted in the code, there is no support for caching
member constexpr function evaluations (mostly because I wasn't sure
how to ensure correct operation -- maybe this can come later?!).

Cheers
Andy


-------------- next part --------------
A non-text attachment was scrubbed...
Name: part3.diff
Type: application/octet-stream
Size: 3858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120822/3e740797/attachment.obj>


More information about the cfe-commits mailing list