RHS of the shift-expression by _UseCache::value.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218322
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-12-03 Marek Polacek <polacek@redhat.com>
+
+ * include/bits/regex_compiler.h (_S_cache_size): Multiply the
+ RHS of the shift-expression by _UseCache::value.
+
2014-12-03 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/64168
typedef typename std::is_same<_CharT, char>::type _UseCache;
static constexpr size_t
- _S_cache_size() { return 1ul << (sizeof(_CharT) * __CHAR_BIT__); }
+ _S_cache_size()
+ {
+ return 1ul << (sizeof(_CharT) * __CHAR_BIT__ * int(_UseCache::value));
+ }
struct _Dummy { };
typedef typename std::conditional<_UseCache::value,