]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fix single argument static_assert
authorMarc Poulhiès <poulhies@adacore.com>
Thu, 2 May 2024 10:23:36 +0000 (12:23 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 2 May 2024 11:49:51 +0000 (13:49 +0200)
Single argument static_assert is C++17 only.

gcc/ChangeLog:

* value-range.h: fix static_assert to use 2 arguments.

gcc/value-range.h

index f1c638f8cd004f3f0e31d418a752d17fc1caa843..934eec9e3867554625093c8aec9d195af7b30e72 100644 (file)
@@ -741,7 +741,7 @@ private:
 
   vrange *m_vrange;
   // The buffer must be at least the size of the largest range.
-  static_assert (sizeof (int_range_max) > sizeof (frange));
+  static_assert (sizeof (int_range_max) > sizeof (frange), "");
   char m_buffer[sizeof (int_range_max)];
 };