This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56868] Constexpr example in 7.1.5/5 fails to compile correctly
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 07 Apr 2013 19:41:33 +0000
- Subject: [Bug c++/56868] Constexpr example in 7.1.5/5 fails to compile correctly
- Auto-submitted: auto-generated
- References: <bug-56868-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56868
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-04-07 19:41:33 UTC ---
Whatever it is, doesn't have much to do with constexpr, consider:
#include <cassert>
int f(void *) { return 0; }
int f(...) { return 1; }
int g(int n) { return f(n*0); }
int main()
{
assert (g(0) == 1);
}