[Bug c++/96489] Three way comparison operator failure to synthesize traditional comparitors

2020-08-06 Thread gu...@henkel-wallace.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96489 --- Comment #7 from DV Henkel-Wallace --- Thanks. That is clear. BTW FWIW, defining <=> myself and then defining == default does appear to do what I want (i.e. I don't have to use. = default with both operators). I saw that cppreference claims

[Bug c++/96489] Three way comparison operator failure to synthesize traditional comparitors

2020-08-05 Thread gu...@henkel-wallace.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96489 --- Comment #5 from DV Henkel-Wallace --- (In reply to Jonathan Wakely from comment #4) > I believe the rationale for this is that if your <=> can't be defaulted, > then it must be doing something special, and synthesizing == from it is not > nec

[Bug c++/96489] Three way comparison operator failure to synthesize traditional comparitors

2020-08-05 Thread gu...@henkel-wallace.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96489 --- Comment #2 from DV Henkel-Wallace --- I don't think this should be marked as resolved. The bug is not the case you cited which indeed works properly as specified. The bug is that comparators are not being synthesized when the a *user suppli

[Bug c++/96489] New: Three way comparison operator failure to synthesize traditional comparitors

2020-08-05 Thread gu...@henkel-wallace.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gu...@henkel-wallace.org Target Milestone: --- User-defined <=> doesn't generate == or != though user-defined operator== and operator<=> = default do. /usr/

[Bug c++/96278] three-way comparison operator comparison to 0: spurious nullptr warning

2020-07-21 Thread gu...@henkel-wallace.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96278 --- Comment #2 from DV Henkel-Wallace --- (In reply to Andrew Pinski from comment #1) > I think this is a dup of bug 95242. Could be: I'm not sure if Jason's change applies only to synthesized comparators or not (that was the case described in 9

[Bug c++/96278] New: three-way comparison operator comparison to 0: spurious nullptr warning

2020-07-21 Thread gu...@henkel-wallace.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gu...@henkel-wallace.org Target Milestone: --- Bug in g++ 10.1.0 with libstdc++ compile following program doing `g++-10 -std=c++20 -Wzero-as-null-pointer-constant` #include

[Bug c++/83280] New: gcc doesn't realize a returning value from complete switch(enum...) does return a value

2017-12-04 Thread gu...@henkel-wallace.org
IRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gu...@henkel-wallace.org Target Milestone: --- Given this file: === enum class e { a, b, c}; int converter (e val); int converter (e val) { switch