On 2/4/22 17:10, Jakub Jelinek wrote:
On Fri, Feb 04, 2022 at 04:54:39PM -0500, Jason Merrill wrote:
Bootstrapped/regtested on powerpc64le-linux, ok for trunk?
Or shall it wait for GCC 13?
Hmm, I lean toward GCC 13; this seems more of a stage 3 change.
Ok.
I see you test valid uses of >= in template arguments; you should also test
valid >>= (with another overloaded operator).
Is >>= valid there though? The comment says:
Although the standard says "assignment-expression", it forbids
throw-expressions or assignments in the template argument.
Therefore, we use "conditional-expression" instead. */
Ah, good point. Incidentally that's out of date; it now says
"constant-expression", which expands to "conditional-expression".
Jason