[Bug c++/98930] New: ICE when using function local static constexpr variable at runtime

2021-02-02 Thread matthieum.147192 at gmail dot com via Gcc-bugs
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

[Bug c++/98288] Accidental equality of classes templated by pointer to local static constant of templated function

2021-02-02 Thread matthieum.147192 at gmail dot com via Gcc-bugs
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

[Bug c++/98288] Accidental equality of classes templated by pointer to local static constant of templated function

2021-01-04 Thread matthieum.147192 at gmail dot com via Gcc-bugs
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.

[Bug c++/98288] Accidental equality of classes templated by pointer to local static constant of templated function

2020-12-15 Thread matthieum.147192 at gmail dot com via Gcc-bugs
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.

[Bug c++/98288] New: Accidental equality of classes templated by pointer to local static constant of templated function

2020-12-15 Thread matthieum.147192 at gmail dot com via Gcc-bugs
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

[Bug target/86314] [7/8/9 Regression] GCC 7.x and 8.x zero out "eax" before using "rax" in "lock bts"

2018-06-26 Thread matthieum.147192 at gmail dot com
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

[Bug c++/86314] New: GCC 7.x and 8.x zero out "eax" before using "rax" in "lock bts"

2018-06-25 Thread matthieum.147192 at gmail dot com
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