diff options
author | Marc Poulhiès <poulhies@adacore.com> | 2024-08-22 12:46:18 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-08-22 13:41:40 +0200 |
commit | 4e905bd353fc9f37cd35a7e520cb17f993cbd748 (patch) | |
tree | dc356305d54b50b04f2be75681bfdab59db6b3e8 /libcpp | |
parent | 313aa733e22b654ff822b867018b13ceb624c13a (diff) | |
download | gcc-4e905bd353fc9f37cd35a7e520cb17f993cbd748.zip gcc-4e905bd353fc9f37cd35a7e520cb17f993cbd748.tar.gz gcc-4e905bd353fc9f37cd35a7e520cb17f993cbd748.tar.bz2 |
fix single argument static_assert
Single argument static_assert is C++17 only.
libcpp/ChangeLog:
* lex.cc(search_line_ssse3): fix static_assert to use 2 arguments.
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/lex.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcpp/lex.cc b/libcpp/lex.cc index daf2c77..f2d47d1 100644 --- a/libcpp/lex.cc +++ b/libcpp/lex.cc @@ -355,7 +355,8 @@ search_line_ssse3 (const uchar *s, const uchar *end ATTRIBUTE_UNUSED) /* Helper vector for pshufb-based matching: each character C we're searching for is at position (C % 16). */ v16qi lut = { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '\n', 0, '\\', '\r', 0, '?' }; - static_assert ('\n' == 10 && '\r' == 13 && '\\' == 92 && '?' == 63); + static_assert('\n' == 10 && '\r' == 13 && '\\' == 92 && '?' == 63, + "host character encoding is ASCII"); v16qi d1, d2, t1, t2; /* Unaligned loads. Reading beyond the final newline is safe, |