public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107632] New: has_facet does not work with -mlong-double-64
@ 2022-11-11  9:48 krebbel at gcc dot gnu.org
  2022-11-11 13:09 ` [Bug libstdc++/107632] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: krebbel at gcc dot gnu.org @ 2022-11-11  9:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107632
           Summary: has_facet does not work with -mlong-double-64
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

#include <locale>
#include <stdio.h>

using namespace std;

int main(int argc, char *argv[]) {

  locale oGlobalLocale;

  if (!has_facet< num_get<char, istreambuf_iterator<char, char_traits<char> > >
>( oGlobalLocale ))
    __builtin_abort ();
}

g++ t.cpp -o t && ./t   -> works as expected
g++ t.cpp -o t -mlong-double-64 && ./t   -> aborts

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

* [Bug libstdc++/107632] has_facet does not work with -mlong-double-64
  2022-11-11  9:48 [Bug c++/107632] New: has_facet does not work with -mlong-double-64 krebbel at gcc dot gnu.org
@ 2022-11-11 13:09 ` redi at gcc dot gnu.org
  2022-11-11 13:11 ` [Bug libstdc++/107632] [13 Regression] " redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-11-11 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
           Keywords|                            |ABI
   Last reconfirmed|                            |2022-11-11
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
          Component|c++                         |libstdc++

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Almost certainly due to my changes for PR 103755

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

* [Bug libstdc++/107632] [13 Regression] has_facet does not work with -mlong-double-64
  2022-11-11  9:48 [Bug c++/107632] New: has_facet does not work with -mlong-double-64 krebbel at gcc dot gnu.org
  2022-11-11 13:09 ` [Bug libstdc++/107632] " redi at gcc dot gnu.org
@ 2022-11-11 13:11 ` redi at gcc dot gnu.org
  2022-11-11 13:16 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-11-11 13:11 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|has_facet does not work     |[13 Regression] has_facet
                   |with -mlong-double-64       |does not work with
                   |                            |-mlong-double-64
           Priority|P3                          |P1
   Target Milestone|---                         |13.0

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

* [Bug libstdc++/107632] [13 Regression] has_facet does not work with -mlong-double-64
  2022-11-11  9:48 [Bug c++/107632] New: has_facet does not work with -mlong-double-64 krebbel at gcc dot gnu.org
  2022-11-11 13:09 ` [Bug libstdc++/107632] " redi at gcc dot gnu.org
  2022-11-11 13:11 ` [Bug libstdc++/107632] [13 Regression] " redi at gcc dot gnu.org
@ 2022-11-11 13:16 ` redi at gcc dot gnu.org
  2022-11-11 13:26 ` [Bug libstdc++/107632] " redi at gcc dot gnu.org
  2022-11-11 13:26 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-11-11 13:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I'm kinda tempted to just disable the new optimization on these targets, the
handling of compat facets for different float ABIs is impossible to get right.

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

* [Bug libstdc++/107632] has_facet does not work with -mlong-double-64
  2022-11-11  9:48 [Bug c++/107632] New: has_facet does not work with -mlong-double-64 krebbel at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-11-11 13:16 ` redi at gcc dot gnu.org
@ 2022-11-11 13:26 ` redi at gcc dot gnu.org
  2022-11-11 13:26 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-11-11 13:26 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |12.1.0, 13.0, 6.3.1, 9.1.0
            Summary|[13 Regression] has_facet   |has_facet does not work
                   |does not work with          |with -mlong-double-64
                   |-mlong-double-64            |
   Target Milestone|13.0                        |---

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oh wait, not a regression, at least not caused by me this week.

This has failed since at least gcc 6.

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

* [Bug libstdc++/107632] has_facet does not work with -mlong-double-64
  2022-11-11  9:48 [Bug c++/107632] New: has_facet does not work with -mlong-double-64 krebbel at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-11-11 13:26 ` [Bug libstdc++/107632] " redi at gcc dot gnu.org
@ 2022-11-11 13:26 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-11-11 13:26 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|redi at gcc dot gnu.org            |unassigned at gcc dot gnu.org
             Status|ASSIGNED                    |NEW

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11  9:48 [Bug c++/107632] New: has_facet does not work with -mlong-double-64 krebbel at gcc dot gnu.org
2022-11-11 13:09 ` [Bug libstdc++/107632] " redi at gcc dot gnu.org
2022-11-11 13:11 ` [Bug libstdc++/107632] [13 Regression] " redi at gcc dot gnu.org
2022-11-11 13:16 ` redi at gcc dot gnu.org
2022-11-11 13:26 ` [Bug libstdc++/107632] " redi at gcc dot gnu.org
2022-11-11 13:26 ` redi 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).