[Bug c++/108613] [12/13 Regression] GCC12 internal compiler error on __int128_t in type_traits header

2023-02-01 Thread mserdarsanli at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108613 --- Comment #6 from Serdar Sanli --- > Where did you get this from? The header uses signed __int128 > here, not signed __int128_t. Just checked and __GLIBCXX_TYPE_INT_N_0 is also __int128 for me. int128_t seem to come from somewhere else, in

[Bug c++/108613] New: GCC12 internal compiler error on __int128_t in type_traits header

2023-01-31 Thread mserdarsanli at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mserdarsanli at gmail dot com Target Milestone: --- https://godbolt.org/z/M1o34e6cx Below code crashes GCC versions starting with GCC 12. It is only stuff from std library headers

[Bug c++/108597] internal compiler error with -Wduplicated-cond

2023-01-30 Thread mserdarsanli at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108597 --- Comment #1 from Serdar Sanli --- stacktrace from my gcc 12.2.0: 0xe2534f crash_signal /root/source/gcc-12.2.0/gcc/toplev.cc:322 0xb0f049 location_wrapper_p(tree_node const*) /root/source/gcc-12.2.0/gcc/tree.h:4160 0xb0f049 t

[Bug c++/108597] New: internal compiler error with -Wduplicated-cond

2023-01-30 Thread mserdarsanli at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mserdarsanli at gmail dot com Target Milestone: --- https://godbolt.org/z/Kdvd5hzYK compile below with -Wduplicated-cond and it will crash template struct MyStruct { void check(int &x) { if (&

[Bug c++/108587] New: `decltype(x) x;` in struct declaration causes "changes meaning of" error

2023-01-28 Thread mserdarsanli at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mserdarsanli at gmail dot com Target Milestone: --- Godbolt link: https://godbolt.org/z/rjEGPKcE7 void fine() { int x; struct { int

[Bug middle-end/54202] Overeager warning about freeing non-heap objects

2021-06-16 Thread mserdarsanli at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54202 Serdar Sanli changed: What|Removed |Added CC||mserdarsanli at gmail dot com

[Bug c++/96511] New: Incorrect placement-new warning

2020-08-06 Thread mserdarsanli at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: mserdarsanli at gmail dot com Target Milestone: --- Below code causes the warning in the last line, which seems to be incorrect. It affects all versions starting from GCC 8 Compiler explorer: https://godbolt.org/z/xhf6cr #include

[Bug tree-optimization/92180] New: Missed optimization on casting __builtin_ia32_rdtsc result to int32

2019-10-22 Thread mserdarsanli at gmail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mserdarsanli at gmail dot com Target Milestone: --- Link: https://godbolt.org/z/wcIN0a #include uint32_t foo1() { return __builtin_ia32_rdtsc(); } uint64_t foo2

[Bug tree-optimization/91409] New: Missed optimization on `labels as values` expression

2019-08-09 Thread mserdarsanli at gmail dot com
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mserdarsanli at gmail dot com Target Milestone: --- I recently posted about this on SO, but it did not gain much traction: https://stackoverflow.com/questions/55987401/gcc-clang-labels-as-values-computing

[Bug tree-optimization/91019] New: Missed optimization on sequential memcpy calls

2019-06-27 Thread mserdarsanli at gmail dot com
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mserdarsanli at gmail dot com Target Milestone: --- #include #include void encode_v1(uint8_t *buf, uint64_t a1, uint16_t a2) { memcpy(buf, &a1, 6); memcpy(buf+6, &a2, 2); } void encode_v2