public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r15-109] fix single argument static_assert
@ 2024-05-02 11:50 Marc Poulhi?s
0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2024-05-02 11:50 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4bb21b5cd7a805b78ea85f46cbb82438ca757a56
commit r15-109-g4bb21b5cd7a805b78ea85f46cbb82438ca757a56
Author: Marc Poulhiès <poulhies@adacore.com>
Date: Thu May 2 12:23:36 2024 +0200
fix single argument static_assert
Single argument static_assert is C++17 only.
gcc/ChangeLog:
* value-range.h: fix static_assert to use 2 arguments.
Diff:
---
gcc/value-range.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/value-range.h b/gcc/value-range.h
index f1c638f8cd0..934eec9e386 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -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)];
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-02 11:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-02 11:50 [gcc r15-109] fix single argument static_assert Marc Poulhi?s
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).