Commit 2ed21e59 by Jason Merrill

* g++.dg/ubsan/pr70135.C: Don't rely on C++17 static_assert.

From-SVN: r234120
parent a3dc8760
...@@ -32,5 +32,5 @@ main () ...@@ -32,5 +32,5 @@ main ()
{ {
S <true, false, false, true, true, true, false, true> s; S <true, false, false, true, true, true, false, true> s;
constexpr auto c = s.bar (); constexpr auto c = s.bar ();
static_assert (s.bar () == 4 * 64 + 5); static_assert (s.bar () == 4 * 64 + 5, "");
} }
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