aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2023-09-30 11:26:14 +0200
committerJakub Jelinek <jakub@redhat.com>2023-09-30 11:26:14 +0200
commit9d249b7e31eb4e1379a45f90949776c11d29063c (patch)
tree0bba403909f5ba49b136dd1302bb2edfbbbb1dde /gcc/vec.h
parentd6fe757b39297c1c0cf243acee860d045726c184 (diff)
downloadgcc-9d249b7e31eb4e1379a45f90949776c11d29063c.zip
gcc-9d249b7e31eb4e1379a45f90949776c11d29063c.tar.gz
gcc-9d249b7e31eb4e1379a45f90949776c11d29063c.tar.bz2
vec.h: Uncomment static_assert
Now that poly_int_pod has been removed and other changes mostly to use {quick,safe}_grow_cleared instead of {quick,safe}_grow for types with non-trivial default construction, we can enable even the last static assertion. From now on, {quick,safe}_grow can only be used with trivially default constructible types. 2023-09-30 Jakub Jelinek <jakub@redhat.com> * vec.h (quick_grow): Uncomment static_assert.
Diffstat (limited to 'gcc/vec.h')
-rw-r--r--gcc/vec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/vec.h b/gcc/vec.h
index 42eac1c..d509639 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -1416,7 +1416,7 @@ vec<T, A, vl_embed>::quick_grow (unsigned len)
{
gcc_checking_assert (length () <= len && len <= m_vecpfx.m_alloc);
#if GCC_VERSION >= 5000
-// static_assert (std::is_trivially_default_constructible <T>::value, "");
+ static_assert (std::is_trivially_default_constructible <T>::value, "");
#endif
m_vecpfx.m_num = len;
}