--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-discussio...@isocpp.org.
To post to this group, send email to std-dis...@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-discussion/.
On 2015–07–27, at 8:18 AM, Anders Granlund <anders.g...@gmail.com> wrote:Anyways the program seems to be ill-formed with no diagnostics required [dcl.constexpr]/5 (http://eel.is/c++draft/dcl.constexpr#5), so it's not a problem that the compilers disagree.
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.
On 2015–07–27, at 10:20 PM, Anders Granlund <anders.g...@gmail.com> wrote:If we changed the program to:void g() { }constexpr void f() { g(); return; }int main() {}Then it would be ill-formed by [dcl.constexpr]/5 (http://eel.is/c++draft/dcl.constexpr#5) with NDR?
And if we changed it to:void g() { }constexpr void f(bool b) { if (b) g(); return; }int main() {}Then it would be well-formed.