This is the mail archive of the gcc-bugs@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]

[Bug c++/56868] Constexpr example in 7.1.5/5 fails to compile correctly


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);
}


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