[Bug tree-optimization/97856] New: Missed optimization: repeated call

2020-11-16 Thread miguel.ojeda.sandonis at gmail dot com via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: miguel.ojeda.sandonis at gmail dot com Target Milestone: --- For code such as: void f(int); void g(int v) { switch (v) { case 1: f(1); case 2: f(2); case 3: f(3

[Bug tree-optimization/90525] Wrong offsets in warning text for -Warray-bounds (with subobject)

2019-05-20 Thread miguel.ojeda.sandonis at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90525 --- Comment #2 from Miguel Ojeda --- I see. About offset 1: even if it is not (formally) out of bounds, memset will end up dereferencing it. In the end, what users care about is that b and c are being overwritten (even users that know about the

[Bug tree-optimization/90525] New: Wrong offsets in warning text for -Warray-bounds (with subobject)

2019-05-17 Thread miguel.ojeda.sandonis at gmail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: miguel.ojeda.sandonis at gmail dot com Target Milestone: --- When fixing an -Warray-bounds warning for the kernel I noticed that the offsets were off-by-1 in at least one

[Bug c++/87603] [C++17] noexcept isn't special cased for constant expressions anymore

2018-10-12 Thread miguel.ojeda.sandonis at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87603 Miguel Ojeda changed: What|Removed |Added Attachment #44832|0 |1 is obsolete|

[Bug c++/87603] [C++17] noexcept isn't special cased for constant expressions anymore

2018-10-12 Thread miguel.ojeda.sandonis at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87603 --- Comment #1 from Miguel Ojeda --- Created attachment 44832 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44832=edit patch + test

[Bug c++/87603] New: [C++17] noexcept isn't special cased for constant expressions anymore

2018-10-12 Thread miguel.ojeda.sandonis at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: miguel.ojeda.sandonis at gmail dot com Target Milestone: --- CWG 1129 (which ended up in C++11) added a special case to noexcept for constant expressions, so that: constexpr

[Bug c++/67259] list-initialization of a reference fails to initialize char array from string literal

2018-05-25 Thread miguel.ojeda.sandonis at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67259 Miguel Ojeda changed: What|Removed |Added CC||miguel.ojeda.sandonis@gmail

[Bug c++/85668] New: ICE with substitution failure

2018-05-06 Thread miguel.ojeda.sandonis at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: miguel.ojeda.sandonis at gmail dot com Target Milestone: --- The following input causes an ICE starting with GCC 4.9 until trunk, on -std=c++{14,17,2a}. template using V = void; template auto f1(F f, T v) -> decltype(