Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: matthieum.147192 at gmail dot com
Target Milestone: ---
The following code crashes gcc trunk (11.0) and produces a linker error on
prior versions -- from 7.2 to 10.2.1 -- from -O0 to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98288
Matthieu M changed:
What|Removed |Added
Version|7.2.0 |11.0
--- Comment #3 from Matthieu M ---
Up
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98288
--- Comment #2 from Matthieu M ---
Richard Smith (Clang) agreed that the following program should return 0, and
fixed the behavior in Clang (trunk) in
https://bugs.llvm.org/show_bug.cgi?id=48517.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98288
--- Comment #1 from Matthieu M ---
The above program leads to an ICE on gcc (trunk): https://godbolt.org/z/dGe1T6,
from SO user https://stackoverflow.com/users/4832499/passer-by.
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: matthieum.147192 at gmail dot com
Target Milestone: ---
Based on https://stackoverflow.com/q/65306562/147192.
The behavior of GCC (and Clang) is
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86314
--- Comment #5 from Matthieu M ---
(In reply to Jakub Jelinek from comment #4)
> Created attachment 44322 [details]
> gcc9-pr86314.patch
>
> Untested fix. The peephole2s didn't expect that an insn with a set of flags
> and some other set could
MED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: matthieum.147192 at gmail dot com
Target Milestone: ---
The following C++ code:
using u64 = unsigned long long;
struct Bucket {
u64 mLeave