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


Attachment: part3.diff
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to