https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
--- Comment #11 from Aaron Ballman ---
(In reply to Jakub Jelinek from comment #10)
> (In reply to Aaron Ballman from comment #9)
> > Doesn't [expr.eq] make it unspecified though?
>
> Will defer that answer to Jason.
> But please have a look at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
--- Comment #10 from Jakub Jelinek ---
(In reply to Aaron Ballman from comment #9)
> Doesn't [expr.eq] make it unspecified though?
Will defer that answer to Jason.
But please have a look at the comment 6 testcase. I strongly hope that
constexpr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
Aaron Ballman changed:
What|Removed |Added
CC||aaron at aaronballman dot com
--- Commen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
Jason Merrill changed:
What|Removed |Added
CC||jason at gcc dot gnu.org
--- Comment #8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
--- Comment #7 from Richard Biener ---
constexpr evaluation shouldn't blindly call fold* if it doesn't expect things
to end up constant that are not or non-constant that are. fold* is _not_ a
constexpr evaluator in the C++ semantic sense.
So no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
--- Comment #6 from Jakub Jelinek ---
Another possibility would be to detect it in cxx_eval_binary_expression before
calling fold_binary_loc and punt.
But, the constant evaluation actually doesn't track whether it is the same or
different evalua
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
Jonathan Wakely changed:
What|Removed |Added
Ever confirmed|0 |1
Keywords|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
--- Comment #3 from Andrew Pinski ---
GCC accepts both with GCC 10+.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
--- Comment #2 from Jonathan Wakely ---
Clang trunk also rejects it for the same reason, icc accepts it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86369
Nicolas Lesser changed:
What|Removed |Added
CC||blitzrakete at gmail dot com
--- Commen
11 matches
Mail list logo