[Bug c++/109039] New: Miscompilation with no_unique_address and bitfields

2023-03-06 Thread coillol at yandex dot ru via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: coillol at yandex dot ru Target Milestone: --- g++ miscompiles the following code starting from version 12.1 (-std=c++20, any optimization mode). ``` #include struct X { short x0 : 7; short x1 : 8; X

[Bug tree-optimization/106446] New: -Warray-bounds false positive on downcast under condition

2022-07-26 Thread coillol at yandex dot ru via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: coillol at yandex dot ru Target Milestone: --- Minimized example: --- struct B { int x = 1; }; struct D1 : B {}; struct Data { int val = 666; }; struct D2 : Data, B

[Bug rtl-optimization/92331] New: ICE on incorrect code with VLA

2019-11-02 Thread coillol at yandex dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: coillol at yandex dot ru Target Milestone: --- The following text triggers ICE in gcc (at least on 9.2.0 and trunk -- https://godbolt.org/z/WHnZCJ): int foo(); int main() { using X = int[foo()]; struct S { S() { X x

[Bug tree-optimization/88074] New: g++ hangs on math expression

2018-11-17 Thread coillol at yandex dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: coillol at yandex dot ru Target Milestone: --- Piece of program that causes the problem: #include #include using ValType = std::complex; void getValue(std::vector &V) { static auto Fn = [](ValType Pt) ->