aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2018-05-10 15:12:23 -0400
committerJason Merrill <jason@gcc.gnu.org>2018-05-10 15:12:23 -0400
commita6e1cfddc4758ff6f66c5fc7a8fd54e3f141973d (patch)
tree8061a272bb2ebe74faae9944791fa5f2ab152b7d
parentf8e94a0156bb869e3b82ca063054ab052a72827b (diff)
downloadgcc-a6e1cfddc4758ff6f66c5fc7a8fd54e3f141973d.zip
gcc-a6e1cfddc4758ff6f66c5fc7a8fd54e3f141973d.tar.gz
gcc-a6e1cfddc4758ff6f66c5fc7a8fd54e3f141973d.tar.bz2
regex_compiler.h (_S_cache_size): Change from function to variable.
* include/bits/regex_compiler.h (_S_cache_size): Change from function to variable. From-SVN: r260128
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/bits/regex_compiler.h8
2 files changed, 8 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index bd0a0b3..df67836 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-10 Jason Merrill <jason@redhat.com>
+
+ * include/bits/regex_compiler.h (_S_cache_size): Change from
+ function to variable.
+
2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
diff --git a/libstdc++-v3/include/bits/regex_compiler.h b/libstdc++-v3/include/bits/regex_compiler.h
index 7e5c207..6eee9cb 100644
--- a/libstdc++-v3/include/bits/regex_compiler.h
+++ b/libstdc++-v3/include/bits/regex_compiler.h
@@ -527,14 +527,12 @@ namespace __detail
typedef typename std::is_same<_CharT, char>::type _UseCache;
static constexpr size_t
- _S_cache_size()
- {
- return 1ul << (sizeof(_CharT) * __CHAR_BIT__ * int(_UseCache::value));
- }
+ _S_cache_size =
+ 1ul << (sizeof(_CharT) * __CHAR_BIT__ * int(_UseCache::value));
struct _Dummy { };
typedef typename std::conditional<_UseCache::value,
- std::bitset<_S_cache_size()>,
+ std::bitset<_S_cache_size>,
_Dummy>::type _CacheT;
typedef typename std::make_unsigned<_CharT>::type _UnsignedCharT;