[Bug libstdc++/108075] Undefined typeinfo for _Float16 (_ZTIDF16_)

2022-12-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108075

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Jakub Jelinek  ---
Fixed on the trunk.  As I said, there is nothing that can be done for older
versions.

[Bug libstdc++/108075] Undefined typeinfo for _Float16 (_ZTIDF16_)

2022-12-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108075

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Jakub Jelinek :

https://gcc.gnu.org/g:3f101e32e2fb616633722fb552779f537e9a9891

commit r13-4722-g3f101e32e2fb616633722fb552779f537e9a9891
Author: Jakub Jelinek 
Date:   Thu Dec 15 17:02:55 2022 +0100

c++, libstdc++: Add typeinfo for _Float{16,32,64,128,32x,64x} and __bf16
types [PR108075]

The following patch adds typeinfos for the extended floating point
types and _Float{32,64}x.

2022-12-15  Jakub Jelinek  

PR libstdc++/108075
gcc/cp/
* rtti.cc (emit_support_tinfos): Add pointers to
{bfloat16,float{16,32,64,128,32x,64x,128x}}_type_node to
fundamentals
array.
gcc/testsuite/
* g++.dg/cpp23/ext-floating13.C: New test.
libstdc++-v3/
* config/abi/pre/gnu.ver (CXXABI_1.3.14): Export
_ZTIDF[0-9]*[_bx], _ZTIPDF[0-9]*[_bx] and _ZTIPKDF[0-9]*[_bx].
* testsuite/util/testsuite_abi.cc (check_version): Handle
CXXABI_1.3.14.

[Bug libstdc++/108075] Undefined typeinfo for _Float16 (_ZTIDF16_)

2022-12-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108075

Jakub Jelinek  changed:

   What|Removed |Added

   Last reconfirmed||2022-12-12
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org
 Ever confirmed|0   |1
 Status|UNCONFIRMED |ASSIGNED

--- Comment #2 from Jakub Jelinek  ---
Created attachment 54073
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54073=edit
gcc13-pr108075.patch

Untested fix.  There is nothing that can be done for GCC 12 though.

[Bug libstdc++/108075] Undefined typeinfo for _Float16 (_ZTIDF16_)

2022-12-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108075

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek  ---
Following shows much more types without typeinfo (only _Float128x is fine
because it isn't supported on any target).

#include 

#ifdef __STDCPP_FLOAT16_T__
const std::type_info  = typeid(decltype(0.0f16));
#endif
#ifdef __STDCPP_BFLOAT16_T__
const std::type_info  = typeid(decltype(0.0bf16));
#endif
#ifdef __STDCPP_FLOAT32_T__
const std::type_info  = typeid(decltype(0.0f32));
#endif
#ifdef __STDCPP_FLOAT64_T__
const std::type_info  = typeid(decltype(0.0f64));
#endif
#ifdef __STDCPP_FLOAT128_T__
const std::type_info  = typeid(decltype(0.0f128));
#endif
#ifdef __FLT32X_MAX__
const std::type_info  = typeid(decltype(0.0f32x));
#endif
#ifdef __FLT64X_MAX__
const std::type_info  = typeid(decltype(0.0f64x));
#endif
#ifdef __FLT128X_MAX__
const std::type_info  = typeid(decltype(0.0f128x));
#endif

int
main ()
{
}