[Bug sanitizer/110814] New: Address Sanitizer misses 'global-buffer-overflow' for const arrays

2023-07-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
ty: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.o

[Bug sanitizer/110099] New: GCC's Address Sanitizer misses 'stack-use-after-scope' when accessing variable from the same scope

2023-06-02 Thread egor_suvorov at mail dot ru via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, j

[Bug c++/109923] New: Template friend function defined in a template class becomes a friend of all instantiations, not one

2023-05-21 Thread egor_suvorov at mail dot ru via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- The following code is accepted by all versions of GCC that I tried (including "trunk"

[Bug c++/108565] New: -Wuse-after-free false positive on a shared_ptr implementation triggered by -O2

2023-01-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- May or may not be a duplicate of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106119 Consider the following code

[Bug other/105729] New: False positive UBsan "reference binding to null pointer of type" when evaluating array indexing which throws exception

2022-05-25 Thread egor_suvorov at mail dot ru via Gcc-bugs
oduct: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- Consider the following code: int range_c

[Bug driver/103362] -m option is not ignored when is immediately preceded by -o option

2021-11-22 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103362 --- Comment #2 from Egor Suvorov --- Thank you very much, sent a report there: https://sourceware.org/bugzilla/show_bug.cgi?id=28619

[Bug c++/103362] New: -m option is not ignored when is immediately preceded by -o option

2021-11-22 Thread egor_suvorov at mail dot ru via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- Here is an issue that one of my students encountered today: https://stackoverflow.com/questions/70069809/unrecognized-emulation

[Bug libstdc++/98677] std::regex constructor triggers valgrind under clang++ with undefined sanitizer; possible use-after-move

2021-10-09 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98677 --- Comment #4 from Egor Suvorov --- Note that the issue requires both UBSanitizer and Valgrind enabled simultaneously. Running with just one of them does not result in an error. The versions are ones installed in Ubuntu 20.04.3 Focal Fossa (amd

[Bug c++/100764] Internal compiler error when unable to deduce template parameter value

2021-05-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100764 --- Comment #1 from Egor Suvorov --- UPD: compiling with `g++ -v -std=c++20` on Godbolt's GCC 11.1 yields the following information about versions: Using built-in specs. COLLECT_GCC=/opt/compiler-explorer/gcc-11.1.0/bin/g++ Target: x86_64-linux

[Bug c++/100764] New: Internal compiler error when unable to deduce template parameter value

2021-05-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- The following snippet, when compiled with `g++ -std=c++20`: template struct LiteralResolver { constexpr

[Bug c++/99931] New: Unnamed `struct` defined with `using` having internal linkage instead of external, unlike `typedef`, yielding different semantics for two

2021-04-06 Thread egor_suvorov at mail dot ru via Gcc-bugs
: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- Possible duplicate of this StackOverflow

[Bug c++/96188] -Wstringop-overflow false positive on std::vector::push_back with -O3

2021-02-17 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96188 --- Comment #5 from Egor Suvorov --- Created attachment 50214 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50214&action=edit Preprocessor output for Egor Suvorov's example

[Bug c++/96188] -Wstringop-overflow false positive on std::vector::push_back with -O3

2021-02-17 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96188 Egor Suvorov changed: What|Removed |Added CC||egor_suvorov at mail dot ru --- Comment

[Bug libstdc++/98677] New: std::regex constructor triggers valgrind under clang++ with undefined sanitizer; possible use-after-move

2021-01-14 Thread egor_suvorov at mail dot ru via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- Consider the following code: #include int main() { std::regex regex(&quo

[Bug c++/98019] Concepts: compound requirement expression from 'requires' expression is considered discarded-value expression for [[nodiscard]], false positive warning emitted

2020-11-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98019 --- Comment #1 from Egor Suvorov --- Also, I would expect a warning in this case: requires { foo(); // Looks like a statement. }; but not this: requires { static_cast(foo()); }; or this: requires { { foo() }; // expression chec

[Bug d/98019] New: Concepts: compound requirement expression from 'requires' expression is considered discarded-value expression for [[nodiscard]], false positive warning emitted

2020-11-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
ve warning emitted Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: egor_suvorov at mail dot ru Target

[Bug c++/97755] New: Explicit default constructor is called during copy-list-initialization with a warning only

2020-11-08 Thread egor_suvorov at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- Consider the following test case: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/testsuite/g%2B%2B.dg/cpp0x

[Bug c++/93642] [Coroutines] internal compiler error: in expand_expr_addr_expr_1, at expr.c:8070 using co_return

2020-04-06 Thread egor_suvorov at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93642 Egor Suvorov changed: What|Removed |Added CC||egor_suvorov at mail dot ru --- Comment

[Bug c++/66096] Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG

2015-05-11 Thread egor_suvorov at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66096 Egor Suvorov changed: What|Removed |Added CC||egor_suvorov at mail dot ru --- Comment

[Bug c++/60434] False -Wformat warnings about %lld and %Lf are given on Windows

2014-03-06 Thread egor_suvorov at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60434 --- Comment #3 from Egor Suvorov --- Yes, here is result both with C++03 and with C++11 (they're absolutely the same): a.cpp: In function 'int main()': a.cpp:5:19: warning: format '%f' expects argument of type 'double', but argument 2 has type 'l

[Bug c++/60434] False -Wformat warnings about %lld and %Lf are given on Windows

2014-03-06 Thread egor_suvorov at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60434 --- Comment #2 from Egor Suvorov --- Created attachment 32283 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32283&action=edit Output of gcc with '-v -save-temps -std=c++11 -Wformat'

[Bug c++/60434] New: False -Wformat warnings about %lld and %Lf are given on Windows

2014-03-05 Thread egor_suvorov at mail dot ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru As you know, C++11 defines %Lf for writing and reading long double and %lf/%f for double. I can successfully use them in printf in MinGW, but it gives me false

[Bug c/59564] New: False positive array -Warray-bounds check with -O2

2013-12-19 Thread egor_suvorov at mail dot ru
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Created attachment 31482 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31482&action=edit Output of gcc with '-v -save-temps' Here's a full code: int arr[1]; int n =

[Bug c/59564] False positive array -Warray-bounds check with -O2

2013-12-19 Thread egor_suvorov at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59564 --- Comment #1 from Egor Suvorov --- Created attachment 31483 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31483&action=edit Preprocessed source file