public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/101318] New: Comparison operator
@ 2021-07-04 19:13 tobias.bruell at gmail dot com
2021-07-04 19:20 ` [Bug libstdc++/101318] [10 only] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: tobias.bruell at gmail dot com @ 2021-07-04 19:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101318
Bug ID: 101318
Summary: Comparison operator
Product: gcc
Version: 10.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: tobias.bruell at gmail dot com
Target Milestone: ---
The comparison operators for std::array<int8_t, N> seem a bit broken in gcc 10.
Seems to work in gcc 11 and 12. The following program should probably print the
same value twice. I assume it's a problem with the standard library?
```
#include <iostream>
#include <array>
int main() {
int8_t const a = 0;
int8_t const b = -1;
std::cout << (a > b) << '\n';
std::array<int8_t, 1> A = {a};
std::array<int8_t, 1> B = {b};
std::cout << (A > B) << '\n';
}
```
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/101318] [10 only] Comparison operator
2021-07-04 19:13 [Bug libstdc++/101318] New: Comparison operator tobias.bruell at gmail dot com
@ 2021-07-04 19:20 ` pinskia at gcc dot gnu.org
2021-07-12 11:14 ` redi at gcc dot gnu.org
2021-07-12 11:15 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-04 19:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101318
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Comparison operator |[10 only] Comparison
| |operator
Target Milestone|--- |10.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/101318] [10 only] Comparison operator
2021-07-04 19:13 [Bug libstdc++/101318] New: Comparison operator tobias.bruell at gmail dot com
2021-07-04 19:20 ` [Bug libstdc++/101318] [10 only] " pinskia at gcc dot gnu.org
@ 2021-07-12 11:14 ` redi at gcc dot gnu.org
2021-07-12 11:15 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2021-07-12 11:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101318
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Already fixed for GCC 10.3, you should upgrade.
*** This bug has been marked as a duplicate of bug 96851 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/101318] [10 only] Comparison operator
2021-07-04 19:13 [Bug libstdc++/101318] New: Comparison operator tobias.bruell at gmail dot com
2021-07-04 19:20 ` [Bug libstdc++/101318] [10 only] " pinskia at gcc dot gnu.org
2021-07-12 11:14 ` redi at gcc dot gnu.org
@ 2021-07-12 11:15 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2021-07-12 11:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101318
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.3
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-12 11:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-04 19:13 [Bug libstdc++/101318] New: Comparison operator tobias.bruell at gmail dot com
2021-07-04 19:20 ` [Bug libstdc++/101318] [10 only] " pinskia at gcc dot gnu.org
2021-07-12 11:14 ` redi at gcc dot gnu.org
2021-07-12 11:15 ` 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).