diff options
author | Diego Novillo <dnovillo@google.com> | 2012-09-04 11:16:51 -0400 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2012-09-04 11:16:51 -0400 |
commit | dce6e8ada7b01213cd6f94edde84370041ece98e (patch) | |
tree | ff4fae09ff6f1d3c767111d5aa752e77d2d68445 /gcc/vec.h | |
parent | 0e9f719a987c57d25fb323d70c25e9031fbbe334 (diff) | |
download | gcc-dce6e8ada7b01213cd6f94edde84370041ece98e.zip gcc-dce6e8ada7b01213cd6f94edde84370041ece98e.tar.gz gcc-dce6e8ada7b01213cd6f94edde84370041ece98e.tar.bz2 |
re PR bootstrap/54479 (Bootstrap with release-checking broken)
PR bootstrap/54479
* vec.h (vec_t::copy): Add cast in call to reserve_exact.
From-SVN: r190937
Diffstat (limited to 'gcc/vec.h')
-rw-r--r-- | gcc/vec.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -699,7 +699,8 @@ vec_t<T>::copy (ALONE_MEM_STAT_DECL) if (len) { - new_vec = vec_t<T>::reserve_exact<A> (NULL, len PASS_MEM_STAT); + new_vec = vec_t<T>::reserve_exact<A> (static_cast<vec_t<T> *> (NULL), + len PASS_MEM_STAT); new_vec->embedded_init (len, len); memcpy (new_vec->address (), vec_, sizeof (T) * len); } |