public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/107636] New: [13 regression] r13-3761-ga239a63f868e29 breaks build on powerpc64le with __float128 support
@ 2022-11-11 14:37 enrico.seiler+gccbugs at outlook dot com
  2022-11-11 14:40 ` [Bug libstdc++/107636] " enrico.seiler+gccbugs at outlook dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: enrico.seiler+gccbugs at outlook dot com @ 2022-11-11 14:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107636
           Summary: [13 regression] r13-3761-ga239a63f868e29 breaks build
                    on powerpc64le with __float128 support
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: enrico.seiler+gccbugs at outlook dot com
  Target Milestone: ---

The following does not compile:

```
#define __STDCPP_FLOAT128_T__
#define _GLIBCXX_HAVE_FLOAT128_MATH
#define _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT

#include <charconv>

int main()
{}
```

```
include/c++/13.0.0/charconv: In function ‘std::to_chars_result
std::to_chars(char*, char*, _Float128)’:
include/c++/13.0.0/charconv:890:5: error: expected primary-expression before
‘return’
  890 |     return to_chars(__first, __last, static_cast<__float128>(__value));
      |     ^~~~~~
include/c++/13.0.0/charconv: In function ‘std::to_chars_result
std::to_chars(char*, char*, _Float128, chars_format)’:
include/c++/13.0.0/charconv:897:5: error: expected primary-expression before
‘return’
  897 |     return to_chars(__first, __last, static_cast<__float128>(__value),
__fmt);
      |     ^~~~~~
include/c++/13.0.0/charconv: In function ‘std::to_chars_result
std::to_chars(char*, char*, _Float128, chars_format, int)’:
include/c++/13.0.0/charconv:904:5: error: expected primary-expression before
‘return’
  904 |     return to_chars(__first, __last, static_cast<__float128>(__value),
__fmt,
      |     ^~~~~~
```

Related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107562

It seems there are a few __extension__ where they should not be:

  inline to_chars_result
  to_chars(char* __first, char* __last, _Float128 __value) noexcept
  {
    __extension__
    return to_chars(__first, __last, static_cast<__float128>(__value));
  }

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

end of thread, other threads:[~2022-11-14 11:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11 14:37 [Bug libstdc++/107636] New: [13 regression] r13-3761-ga239a63f868e29 breaks build on powerpc64le with __float128 support enrico.seiler+gccbugs at outlook dot com
2022-11-11 14:40 ` [Bug libstdc++/107636] " enrico.seiler+gccbugs at outlook dot com
2022-11-11 15:39 ` jakub at gcc dot gnu.org
2022-11-11 18:12 ` pinskia at gcc dot gnu.org
2022-11-12 20:57 ` cvs-commit at gcc dot gnu.org
2022-11-14 11:07 ` rguenth 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).