Commit 4e55d61a by Paolo Carlini Committed by Paolo Carlini

re PR c++/59329 (Using `assert(...)` is not allowed in constexpr functions)

2015-03-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59329
	* g++.dg/cpp1y/constexpr-assert1.C: New.

From-SVN: r221740
parent 13be44ed
2015-03-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59329
* g++.dg/cpp1y/constexpr-assert1.C: New.
2015-03-27 Marek Polacek <polacek@redhat.com>
PR c++/65556
......
// PR c++/59329
// { dg-do compile { target c++14 } }
#include <cassert>
inline constexpr int exampleFunction(int min, int max)
{
assert(min <= max);
return min + max;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment