[Bug c++/96917] decltype(auto) variable initialized with lambda by-reference capture has incorrect type

2023-11-10 Thread andrey.vihrov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96917 --- Comment #5 from Andrey Vihrov --- Thanks!

[Bug target/101438] Compiler hang on inline asm with local register and alloca

2022-08-01 Thread andrey.vihrov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101438 Andrey Vihrov changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/105032] Compiling inline ASM x86 causing GCC stuck in an endless loop with 100% CPU usage

2022-08-01 Thread andrey.vihrov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105032 --- Comment #15 from Andrey Vihrov --- *** Bug 101438 has been marked as a duplicate of this bug. ***

[Bug target/101438] Compiler hang on inline asm with local register and alloca

2022-07-30 Thread andrey.vihrov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101438 --- Comment #4 from Andrey Vihrov --- Looks like this is a duplicate of bug 105032 (or vice versa). Both samples from this bug succeed for me with GCC 11.3 and GCC 12.

[Bug libstdc++/105562] [12/13 Regression] std::function::_M_invoker may be used uninitialized in std::regex move with -fno-strict-aliasing since r12-6216-g5a431b60d1f22199

2022-05-11 Thread andrey.vihrov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105562 --- Comment #2 from Andrey Vihrov --- Sorry, even std::regex a("."); alone is enough to trigger the warnings.

[Bug libstdc++/105562] New: [12 Regression] std::function::_M_invoker may be used uninitialized in std:regex move with -fno-strict-aliasing

2022-05-11 Thread andrey.vihrov at gmail dot com via Gcc-bugs
: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Consider the following sample: #include int main

[Bug inline-asm/101438] Compiler hang on inline asm with local register and VLA operands

2021-07-14 Thread andrey.vihrov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101438 --- Comment #3 from Andrey Vihrov --- Created attachment 51152 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51152&action=edit Alternative testcase using __builtin_alloca() Thanks. This code is the result of minimization. It seems that

[Bug inline-asm/101438] New: Compiler hang on inline asm with local register and VLA operands

2021-07-13 Thread andrey.vihrov at gmail dot com via Gcc-bugs
Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Target: x86_64-pc-linux-gnu Compiling this C source: int main(void) { register long long rax __asm__

[Bug c++/96917] New: decltype(auto) variable initialized with lambda by-reference capture has incorrect type

2020-09-03 Thread andrey.vihrov at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Consider #include int main() { int x = 5; [&]() { decltype(

[Bug sanitizer/96885] New: "member call on misaligned address" when calling a second base member through a pointer to member of derived class

2020-09-01 Thread andrey.vihrov at gmail dot com
Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc d

[Bug sanitizer/95279] UBSan doesn't seem to detect pointer overflow in certain cases

2020-05-25 Thread andrey.vihrov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95279 --- Comment #5 from Andrey Vihrov --- Assuming that there indeed is no object at address 0x406310, wouldn't 6.5.6.8 from the C11 standard apply? > [...] If both the pointer operand and the result point to elements of the same > array object, or

[Bug target/95216] New: Extra space in __builtin_ia32_vec_pack_sfix256 definition

2020-05-19 Thread andrey.vihrov at gmail dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- See https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/i386/i386-builtin.def;h=fa123788a8e49a023ea17c69f7cd56ecd3acca47#l1105

[Bug c++/94983] Empty list initialization of aggregate class with deleted default ctor rejected in C++14 and C++17

2020-05-13 Thread andrey.vihrov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94983 --- Comment #3 from Andrey Vihrov --- Another sample, probably caused by the same underlying issue: struct T { char a[3]; }; void bar() { T t{"x"}; // OK T{"x"}; // OK new T{"x"}; // err

[Bug c++/94983] Empty list initialization of aggregate class with deleted default ctor rejected in C++14 and C++17

2020-05-07 Thread andrey.vihrov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94983 --- Comment #2 from Andrey Vihrov --- Thanks for the helpful link. To clarify, list initialization in a new-expression context behaves differently from other cases such as "S{};" and "S s{};" (be their behavior correct or incorrect).

[Bug c++/94983] New: Empty list initialization of aggregate class with deleted default ctor rejected in C++14 and C++17

2020-05-07 Thread andrey.vihrov at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Consider the following C++ sample: struct S { S() = delete; }; void foo

[Bug c++/93528] New: Object copy not optimized out for most sizes in strict aliasing memcpy pattern

2020-01-31 Thread andrey.vihrov at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Consider the following code (a common

[Bug other/93495] GCC fails to parse response files with UTF-8 BOM

2020-01-29 Thread andrey.vihrov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93495 --- Comment #2 from Andrey Vihrov --- Yes, I confirmed the same issue for GNU ld and as, but didn't report that yet.

[Bug driver/93495] New: GCC fails to parse response files with UTF-8 BOM

2020-01-29 Thread andrey.vihrov at gmail dot com
: driver Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Steps to reproduce: export LANG="en_US.UTF-8" touch test.c printf '\xef\xbb\xbftest.c' > cmd gcc -c @cmd Output: gcc: error: 

[Bug c++/91921] New: Incomplete -Woverloaded-virtual warning when base class is in system header

2019-09-26 Thread andrey.vihrov at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Compiling the following preprocessed source: # 1 "foo.h" 3 struct A { virtual void f(); };

[Bug c++/91808] New: Static definition rejected after extern declaration in anonymous namespace

2019-09-18 Thread andrey.vihrov at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Consider the following C++11 sample: namespace { extern int x; static int x = 0; } Compiling

[Bug c++/91075] New: Wrong code generated for static variable with local redeclaration

2019-07-03 Thread andrey.vihrov at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Consider the following C++ sample: static int x; int main() { int x = 1; { extern int x

[Bug c++/58646] ICE on a multidimensional VLA with an empty initializer list

2018-06-12 Thread andrey.vihrov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58646 Andrey Vihrov changed: What|Removed |Added CC||andrey.vihrov at gmail dot com

[Bug libstdc++/85930] New: Misaligned reference created in shared_ptr_base.h with -fno-rtti

2018-05-25 Thread andrey.vihrov at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Compiling and running the following code: #include extern const char c = 42; int main() { std

[Bug c++/71728] New: ICE with goto in statement-expression inside a condition

2016-07-01 Thread andrey.vihrov at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Compiling this source: int main() { if (({ goto test; test: 1; })); } with "g++ -Wall test.cpp -o test" gives: test.cpp: I

[Bug libstdc++/64504] Invalid free() with _GLIBCXX_DEBUG and -fwhole-program

2015-06-09 Thread andrey.vihrov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64504 --- Comment #6 from Andrey Vihrov --- Thanks for your reply. You have a point: using -fwhole-program introduces more effects than needed, as evidenced by this bug report, so an anonymous namespace is safer and cleaner. In any case, in this bug r

[Bug sanitizer/66343] New: "Error: .Lubsan_type3 already defined" with UBSan and precompiled headers

2015-05-30 Thread andrey.vihrov at gmail dot com
Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc d

[Bug inline-asm/66279] Input/output asm operand is not loaded inside a constructor with a virtual base class

2015-05-25 Thread andrey.vihrov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66279 Andrey Vihrov changed: What|Removed |Added Attachment #35620|0 |1 is obsolete|

[Bug inline-asm/66279] New: Input/output asm operand is not loaded inside a constructor with a virtual base class

2015-05-25 Thread andrey.vihrov at gmail dot com
Severity: normal Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Target Milestone: --- Created attachment 35620 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35620&action=edit T

[Bug libstdc++/64504] Invalid free() with _GLIBCXX_DEBUG and -fwhole-program

2015-01-25 Thread andrey.vihrov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64504 --- Comment #3 from Andrey Vihrov --- I compiled the example program without and with -fwhole-program to assembly code, and here are the differences: http://pastie.org/9859649 As I understand, normally the ".weak" directive ensures that there is

[Bug libstdc++/64504] Invalid free() with _GLIBCXX_DEBUG and -fwhole-program

2015-01-06 Thread andrey.vihrov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64504 --- Comment #2 from Andrey Vihrov --- Thanks for a fast reply! My use case for these two (amongst several others) options together is competitive programming, in which a contestant is required a write a one-source-file solution, test it locally

[Bug libstdc++/64504] New: Invalid free() with _GLIBCXX_DEBUG and -fwhole-program

2015-01-05 Thread andrey.vihrov at gmail dot com
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Created attachment 34383 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34383&action=edit Preprocessed source Compiling the following program: #define _GLIBCX

[Bug libmudflap/58232] New: False mudflap positive on std::setw

2013-08-23 Thread andrey.vihrov at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: andrey.vihrov at gmail dot com Created attachment 30694 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30694&action=edit Preprocessed source Compiling and running the following code with "g++ -O2 -Wall -Wext