aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-01-24 15:39:25 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-01-24 15:39:25 +0000
commite658669fe18d27bbde85085d648f0392f3f9bce6 (patch)
treeeddfdc9e4eb573f87f18f3b2ca3d2c5ed4443a5f /gcc/tree-inline.c
parent400a08e28429f2c56c2298908be673a5951d5e20 (diff)
downloadgcc-e658669fe18d27bbde85085d648f0392f3f9bce6.zip
gcc-e658669fe18d27bbde85085d648f0392f3f9bce6.tar.gz
gcc-e658669fe18d27bbde85085d648f0392f3f9bce6.tar.bz2
PR libstdc++/88840 delay evaluation of constant until type is complete
Clang fails to compile std::vector<Incomplete> because the static member __use_relocate cannot be evaluated for an incomplete type. Replace with a static member function that will not be odr-used until needed, by which point the type must be complete. PR libstdc++/88840 * include/bits/stl_vector.h (vector::__use_relocate): Replace static data member with static member function _S_use_relocate(). * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) (vector::_M_default_append): Use _S_use_relocate() instead of __use_relocate. From-SVN: r268239
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions