[Bug libstdc++/91547] std::string_view find_last_not_of can trigger unsigned integer overflow

2022-07-25 Thread vlovich at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91547 --- Comment #5 from Vitali --- https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html

[Bug libstdc++/91547] std::string_view find_last_not_of can trigger unsigned integer overflow

2022-07-25 Thread vlovich at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91547 Vitali changed: What|Removed |Added CC||vlovich at gmail dot com --- Comment #4 from

[Bug c++/102051] [coroutines] ICE in gimplify_var_or_parm_decl, at gimplify.c:2848

2021-08-24 Thread vlovich at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102051 --- Comment #1 from Vitali --- Tested via godbolt on 11 & 12.

[Bug c++/102051] New: [coroutines] ICE in gimplify_var_or_parm_decl, at gimplify.c:2848

2021-08-24 Thread vlovich at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vlovich at gmail dot com Target Milestone: --- Created attachment 51353 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51353&action=edit The preprocessed file that cau

[Bug c++/87951] GCC warns about reaching end of non-void function when all switch is completely handled

2018-12-11 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951 --- Comment #17 from Vitali --- I was explicitly asked to open this as a separate bug in comment #7 of 87950. Would be helpful if the GCC devs could coordinate to figure out if they want separate bugs for C/C++ or 1 bug. Jonathan, on this forum

[Bug c++/87951] GCC warns about reaching end of non-void function when all switch is completely handled

2018-11-09 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951 --- Comment #5 from Vitali --- Jonathan, I think the defect report here does actually apply to this example. I agree the argument could be made that if there's gaps in the enum values that it's arguable that the current GCC behaviour is standards

[Bug c++/87951] GCC warns about reaching end of non-void function when all switch is completely handled

2018-11-09 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951 --- Comment #4 from Vitali --- Is there a way to annotate a specific enum as strict?

[Bug c++/87951] New: GCC warns about reaching end of non-void function when all switch is completely handled

2018-11-08 Thread vlovich at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vlovich at gmail dot com Target Milestone: --- If a function has a single switch statement that handles all enum values & returns a value GCC will warn about

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Vitali changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 Vitali changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/87950] GCC warns about reaching end of non-void function when all switch cases are completely handled

2018-11-08 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950 --- Comment #2 from Vitali --- Why has clang made a different decision? Also, this warning is present in C++ code too.

[Bug c/87950] New: GCC warns about reaching end of non-void function when all switch is completely handled

2018-11-08 Thread vlovich at gmail dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: vlovich at gmail dot com Target Milestone: --- Noticed this for a while. If a function has a single switch statement that handles all enum values & returns a v

[Bug libstdc++/59087] Issues including complex.h in C++11/1y mode because of C's complex.h

2014-09-03 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59087 --- Comment #16 from Vitali --- Yup - I caught that on a self code-review.

[Bug libstdc++/59087] Issues including complex.h in C++11/1y mode because of C's complex.h

2014-09-03 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59087 --- Comment #14 from Vitali --- Actually, found a better workaround for lapacke. Adding #include #define lapack_complex_float std::complex #define lapack_complex_double std::complex before I include causes lapacke.h to avoid including complex

[Bug libstdc++/59087] Issues including complex.h in C++11/1y mode because of C's complex.h

2014-09-03 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59087 --- Comment #12 from Vitali --- Actually, http://en.cppreference.com/w/cpp/header seems to indicate that when compiling as C++, complex.h should be equal to including ccomplex in a global namespace. It seems like the inclusion of C99 complex.h i

[Bug libstdc++/59087] Issues including complex.h in C++11/1y mode because of C's complex.h

2014-09-03 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59087 Vitali changed: What|Removed |Added CC||vlovich at gmail dot com --- Comment #11 from

[Bug libstdc++/62154] std::throw_with_nested should not require a polymorphic type

2014-08-15 Thread vlovich at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62154 Vitali changed: What|Removed |Added CC||vlovich at gmail dot com --- Comment #2 from