public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109884] New: __builtin_Xq returns _Float128 instead of __float128
@ 2023-05-17  7:02 g.peterhoff@t-online.de
  2023-05-17  7:07 ` [Bug c++/109884] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: g.peterhoff@t-online.de @ 2023-05-17  7:02 UTC (permalink / raw)
  To: gcc-bugs

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.peterhoff@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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-05-17 19:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-17  7:02 [Bug c++/109884] New: __builtin_Xq returns _Float128 instead of __float128 g.peterhoff@t-online.de
2023-05-17  7:07 ` [Bug c++/109884] " pinskia at gcc dot gnu.org
2023-05-17  7:09 ` pinskia at gcc dot gnu.org
2023-05-17  7:17 ` g.peterhoff@t-online.de
2023-05-17  7:19 ` pinskia at gcc dot gnu.org
2023-05-17  7:20 ` redi at gcc dot gnu.org
2023-05-17  8:34 ` jakub at gcc dot gnu.org
2023-05-17  9:02 ` jakub at gcc dot gnu.org
2023-05-17  9:03 ` jakub at gcc dot gnu.org
2023-05-17 19:00 ` cvs-commit at gcc dot gnu.org
2023-05-17 19:27 ` cvs-commit at gcc dot gnu.org
2023-05-17 19:28 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).