public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
@ 2021-03-02 10:34 ` redi at gcc dot gnu.org
2021-03-02 10:36 ` redi at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2021-03-02 10:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aatsnps at gmail dot com
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 99335 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
2021-03-02 10:34 ` [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators redi at gcc dot gnu.org
@ 2021-03-02 10:36 ` redi at gcc dot gnu.org
2021-03-02 13:28 ` jakub at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2021-03-02 10:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2021-03-02
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
2021-03-02 10:34 ` [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators redi at gcc dot gnu.org
2021-03-02 10:36 ` redi at gcc dot gnu.org
@ 2021-03-02 13:28 ` jakub at gcc dot gnu.org
2021-03-03 15:13 ` cvs-commit at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-03-02 13:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 50285
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50285&action=edit
gcc11-pr82959.patch
Untested fix.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-03-02 13:28 ` jakub at gcc dot gnu.org
@ 2021-03-03 15:13 ` cvs-commit at gcc dot gnu.org
2021-03-03 15:13 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-03 15:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:0b8fa12015f717ac7e4fe2ffbad96a0cb0df2584
commit r11-7485-g0b8fa12015f717ac7e4fe2ffbad96a0cb0df2584
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Mar 3 16:12:23 2021 +0100
c++: Fix -fstrong-eval-order for operator &&, || and , [PR82959]
P0145R3 added
"However, the operands are sequenced in the order prescribed for the
built-in
operator" rule for overloaded operator calls when using the operator
syntax.
op_is_ordered follows that, but added just the overloaded operators
added in that paper. &&, || and comma operators had rules that
lhs is sequenced before rhs already in C++98.
The following patch adds those cases to op_is_ordered.
2021-03-03 Jakub Jelinek <jakub@redhat.com>
PR c++/82959
* call.c (op_is_ordered): Handle TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR
and COMPOUND_EXPR.
* g++.dg/cpp1z/eval-order10.C: New test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2021-03-03 15:13 ` cvs-commit at gcc dot gnu.org
@ 2021-03-03 15:13 ` jakub at gcc dot gnu.org
2021-03-19 23:30 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-03-03 15:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2021-03-03 15:13 ` jakub at gcc dot gnu.org
@ 2021-03-19 23:30 ` cvs-commit at gcc dot gnu.org
2021-04-20 23:33 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-19 23:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:529e3b3402bd2a97b02318bd834df72815be5f0f
commit r10-9480-g529e3b3402bd2a97b02318bd834df72815be5f0f
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Mar 3 16:12:23 2021 +0100
c++: Fix -fstrong-eval-order for operator &&, || and , [PR82959]
P0145R3 added
"However, the operands are sequenced in the order prescribed for the
built-in
operator" rule for overloaded operator calls when using the operator
syntax.
op_is_ordered follows that, but added just the overloaded operators
added in that paper. &&, || and comma operators had rules that
lhs is sequenced before rhs already in C++98.
The following patch adds those cases to op_is_ordered.
2021-03-03 Jakub Jelinek <jakub@redhat.com>
PR c++/82959
* call.c (op_is_ordered): Handle TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR
and COMPOUND_EXPR.
* g++.dg/cpp1z/eval-order10.C: New test.
(cherry picked from commit 0b8fa12015f717ac7e4fe2ffbad96a0cb0df2584)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2021-03-19 23:30 ` cvs-commit at gcc dot gnu.org
@ 2021-04-20 23:33 ` cvs-commit at gcc dot gnu.org
2021-04-22 16:51 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-20 23:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:6c085d6d783f38f008ea54f80b43f6b8e8f6b971
commit r9-9429-g6c085d6d783f38f008ea54f80b43f6b8e8f6b971
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Mar 3 16:12:23 2021 +0100
c++: Fix -fstrong-eval-order for operator &&, || and , [PR82959]
P0145R3 added
"However, the operands are sequenced in the order prescribed for the
built-in
operator" rule for overloaded operator calls when using the operator
syntax.
op_is_ordered follows that, but added just the overloaded operators
added in that paper. &&, || and comma operators had rules that
lhs is sequenced before rhs already in C++98.
The following patch adds those cases to op_is_ordered.
2021-03-03 Jakub Jelinek <jakub@redhat.com>
PR c++/82959
* call.c (op_is_ordered): Handle TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR
and COMPOUND_EXPR.
* g++.dg/cpp1z/eval-order10.C: New test.
(cherry picked from commit 529e3b3402bd2a97b02318bd834df72815be5f0f)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2021-04-20 23:33 ` cvs-commit at gcc dot gnu.org
@ 2021-04-22 16:51 ` cvs-commit at gcc dot gnu.org
2021-04-22 17:05 ` jakub at gcc dot gnu.org
2021-09-11 14:29 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-22 16:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:cfe0485ff571a7cd27d2c1115f1fea1a5fecc17c
commit r8-10894-gcfe0485ff571a7cd27d2c1115f1fea1a5fecc17c
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Mar 3 16:12:23 2021 +0100
c++: Fix -fstrong-eval-order for operator &&, || and , [PR82959]
P0145R3 added
"However, the operands are sequenced in the order prescribed for the
built-in
operator" rule for overloaded operator calls when using the operator
syntax.
op_is_ordered follows that, but added just the overloaded operators
added in that paper. &&, || and comma operators had rules that
lhs is sequenced before rhs already in C++98.
The following patch adds those cases to op_is_ordered.
2021-03-03 Jakub Jelinek <jakub@redhat.com>
PR c++/82959
* call.c (op_is_ordered): Handle TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR
and COMPOUND_EXPR.
* g++.dg/cpp1z/eval-order10.C: New test.
(cherry picked from commit 529e3b3402bd2a97b02318bd834df72815be5f0f)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2021-04-22 16:51 ` cvs-commit at gcc dot gnu.org
@ 2021-04-22 17:05 ` jakub at gcc dot gnu.org
2021-09-11 14:29 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-22 17:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2021-04-22 17:05 ` jakub at gcc dot gnu.org
@ 2021-09-11 14:29 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-11 14:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82959
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |8.5
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-09-11 14:29 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-82959-4@http.gcc.gnu.org/bugzilla/>
2021-03-02 10:34 ` [Bug c++/82959] g++ doesn't appreciate C++17 evaluation order rules for overloaded operators redi at gcc dot gnu.org
2021-03-02 10:36 ` redi at gcc dot gnu.org
2021-03-02 13:28 ` jakub at gcc dot gnu.org
2021-03-03 15:13 ` cvs-commit at gcc dot gnu.org
2021-03-03 15:13 ` jakub at gcc dot gnu.org
2021-03-19 23:30 ` cvs-commit at gcc dot gnu.org
2021-04-20 23:33 ` cvs-commit at gcc dot gnu.org
2021-04-22 16:51 ` cvs-commit at gcc dot gnu.org
2021-04-22 17:05 ` jakub at gcc dot gnu.org
2021-09-11 14:29 ` pinskia 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).