[Bug c++/91168] New: -Warray-bounds in valid program

2019-07-15 Thread grishalipenko at protonmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: grishalipenko at protonmail dot com Target Milestone: --- Compile: g++ -Wall -Wextra -O2 -Werror -c main.cpp class S { private: double *x; double d; unsigned int N; public: int g (const double *b, int N_) { N = N_

[Bug c++/91056] New: Fail: asan reports stack-use-after-scope in valid program

2019-07-02 Thread grishalipenko at protonmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: grishalipenko at protonmail dot com Target Milestone: --- #include #include class A { public: A () { g = std::make_unique (2.0); } private: std::unique_ptr g; std::vector v

[Bug c++/91146] New: -Werror=array-bounds if compile with -fsanitize=address

2019-07-11 Thread grishalipenko at protonmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: grishalipenko at protonmail dot com Target Milestone: --- Created attachment 46592 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46592&action=edit gtest llvm small_vector It's

[Bug middle-end/91146] -Werror=array-bounds if compile with -fsanitize=address

2019-07-12 Thread grishalipenko at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91146 --- Comment #2 from Grigorii Lipenko --- I remove gtest.h. #include "small_vector.h" class A { public: virtual void f () = 0; }; class B : public A { public: void f () override { small_vector v; v.insert (v.begin (), 1); } };

[Bug middle-end/91146] -Werror=array-bounds if compile with -fsanitize=address

2019-07-12 Thread grishalipenko at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91146 --- Comment #3 from Grigorii Lipenko --- Created attachment 46593 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46593&action=edit llvm small_vector