[Bug libstdc++/94987] Missing vtable for std::__future_base::_State_base on libstdc++.a

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 7 20:03:45 GMT 2020


Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
C++11 support in GCC 4.8 is experimental and there is no guarantee of
compatibility with other versions. In particular, you cannot mix code that uses
C++11 built with 4.8 and 5 (or anything later than 5). See
for more details.

The reason there is no _State_base in libstdc++.a is that the type was replaced
with _State_baseV2. The old type is still exported from the shared library,
because we can't remove symbols from that, but it's not in the static library
because _State_base is not declared in the headers for any GCC version with
non-experimental C++11 support.

More information about the Gcc-bugs mailing list