https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108075

            Bug ID: 108075
           Summary: Undefined typeinfo for _Float16 (_ZTIDF16_)
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey458641387 at gmail dot com
  Target Milestone: ---

The following program compiles but does not link:

    #include <typeinfo>
    const std::type_info &a = typeid(_Float16);

with the error "undefined reference to `_ZTIDF16_'".
Compiler Explorer link: https://godbolt.org/z/eo6fbWTPr.

As a result, using `std::vector<_Float16>` with `_GLIBCXX_DEBUG` fails with
(https://godbolt.org/z/5T5GbPs7f):

    in function
`_ZN11__gnu_debug16_Error_formatter10_ParameterC2IDF16_EERKPT_PKcNS0_12_Is_iteratorE':
    include/c++/13.0.0/debug/formatter.h:369: undefined reference to
`_ZTIPDF16_'

This issue exists in GCC >= 12, including trunk (at least as of CE gcc version
13.0.0 20221212).
Checked on Linux x86_64 and aarch64 (on CE).

Reply via email to