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

            Bug ID: 109884
           Summary: __builtin_Xq returns _Float128 instead of __float128
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: g.peterh...@t-online.de
  Target Milestone: ---

#include <boost/core/demangle.hpp>
#include <quadmath.h>
#include <typeinfo>
#include <iostream>
#include <string>

template <typename Type>
inline std::string nameof()
{
 return boost::core::demangle(typeid(Type).name());
}

int main()
{
 std::cout << nameof<decltype(HUGE_VALQ)>() << std::endl;
 std::cout << nameof<decltype(__builtin_nansq(""))>() << std::endl;
 std::cout << nameof<decltype(__builtin_nanq(""))>() << std::endl;
}

compiled with 13 returns the incorrect type
_Float128
_Float128
_Float128
with 12 or older gives the correct type
__float128
__float128
__float128

regards
Gero

Reply via email to