[Bug debug/78685] -Og generates too many ""s

2025-04-29 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78685 --- Comment #34 from Konstantin Kharlamov --- > which is a problem, because it which is a problem, because it the actual > situation whoops, sorry, not sure what happened to that part, it's supposed to be "which is a problem, because it contrad

[Bug debug/78685] -Og generates too many ""s

2025-04-29 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78685 --- Comment #33 from Konstantin Kharlamov --- @Richard Biener: thank you for the change! If I may point out though, the new text still says: > […]-Og should be the optimization level of choice for the standard > edit-compile-debug cycle, offerin

[Bug debug/78685] -Og generates too many ""s

2025-04-28 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78685 Konstantin Kharlamov changed: What|Removed |Added CC||Hi-Angel at yandex dot ru

[Bug c/115185] Missing "too long" warning when string-array size doesn't include NULL byte

2024-06-29 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115185 --- Comment #10 from Konstantin Kharlamov --- (In reply to Alejandro Colomar from comment #7) > (In reply to Konstantin Kharlamov from comment #5) > > So basically -Wc++-compat warns about every heap memory allocation, of which > > there are doz

[Bug c/115185] Missing "too long" warning when string-array size doesn't include NULL byte

2024-06-29 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115185 --- Comment #5 from Konstantin Kharlamov --- (In reply to Konstantin Kharlamov from comment #3) > (In reply to Andrew Pinski from comment #2) > > It is included in -Wc++-compat . > > Cool, thanks! I'll add the warning to the list we compile the

[Bug c/115684] No warning for pointer and enum field comparison

2024-06-27 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115684 --- Comment #1 from Konstantin Kharlamov --- FWIW, IRL these cases happen during refactoring, when you factor out a code to a smaller function, and some variables from the original function become pointers. I honestly never even check the parame

[Bug c/115684] New: No warning for pointer and enum field comparison

2024-06-27 Thread Hi-Angel at yandex dot ru via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- Comparing an enum field with a pointer produces no warnings (while comparing an int to a pointer produces them). We just had a regression due to this missing check, such

[Bug c/115185] Missing "too long" warning when string-array size doesn't include NULL byte

2024-05-22 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115185 --- Comment #3 from Konstantin Kharlamov --- (In reply to Andrew Pinski from comment #2) > It is included in -Wc++-compat . Cool, thanks! I'll add the warning to the list we compile the project with, thank you!

[Bug c/115185] New: Missing "too long" warning when string-array size doesn't include NULL byte

2024-05-22 Thread Hi-Angel at yandex dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- It's a common pattern to have some `enum Foo { one, two, three }`, and then some 2-dimensinal array

[Bug c/97100] -Wformat checks all arms of _Generic leading to irrelevant type expectation warnings

2024-04-16 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97100 --- Comment #12 from Konstantin Kharlamov --- (In reply to Martin Uecker from comment #11) > A conforming C compiler has to diagnose all violations of constraints with > the same correct type of x in all branches (not the type it would have in >

[Bug c/97100] -Wformat checks all arms of _Generic leading to irrelevant type expectation warnings

2024-04-15 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97100 --- Comment #10 from Konstantin Kharlamov --- (In reply to uecker from comment #9) > Some warnings are then even required to be standard compliant. I just searched through the C standard and no warnings seem to be required by it. The only place

[Bug c/97100] -Wformat checks all arms of _Generic leading to irrelevant type expectation warnings

2024-04-15 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97100 --- Comment #8 from Konstantin Kharlamov --- (In reply to uecker from comment #7) > Fundamentally, the program is that _Generic is not ideally designed for this > use case. Why? > One could consider an extension > > _Generic(x, int i: f(i), l

[Bug c/111598] New: Wimplicit-fallthrough print for a code that is not compiled in

2023-09-26 Thread Hi-Angel at yandex dot ru via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- When a switch-case has a "fallthrough" case that is surrounded by an `#ifdef` and is not compiled in, GCC does not rec

[Bug c/97100] -Wformat checks all arms of _Generic leading to irrelevant type expectation warnings

2023-07-17 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97100 Konstantin Kharlamov changed: What|Removed |Added CC||Hi-Angel at yandex dot ru

[Bug c++/92559] Returning std∷map breaks tail-recursion optimization

2021-07-24 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92559 --- Comment #5 from Konstantin Kharlamov --- (In reply to Konstantin Kharlamov from comment #4) > By the way, FTR: I don't have the code anymore, but initially the problem > came from a real-life algorithm involving lots of state, which looked ba

[Bug c++/92559] Returning std∷map breaks tail-recursion optimization

2021-07-24 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92559 --- Comment #4 from Konstantin Kharlamov --- By the way, FTR: I don't have the code anymore, but initially the problem came from a real-life algorithm involving lots of state, which looked barely readable when implemented in iterative way (i.e. a

[Bug c++/92559] Returning std∷map breaks tail-recursion optimization

2021-07-24 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92559 --- Comment #3 from Konstantin Kharlamov --- (In reply to Andrew Pinski from comment #2) > I don't think this can ever be optimized. Mainly because there are copies > happening due to passing via value and returning by value. Please correct me

[Bug c/101525] New: "out of the bounds" warning for an Innocuous memset call with LTO

2021-07-20 Thread Hi-Angel at yandex dot ru via Gcc-bugs
ty: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- Created attachment 51176 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51176&action=edit preprocessed file

[Bug middle-end/92718] [9/10/11/12 Regression] Bogus Wstringop-overflow in __builtin_memset() of an element of array of size 1 of struct

2021-07-20 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92718 --- Comment #9 from Konstantin Kharlamov --- Omg, I am sorry, please ignore my comment. For some incomprehensible reason bugzilla circles through bug entries upon sending a comment. My comment here was supposed for another report, but then appare

[Bug middle-end/92718] [9/10/11/12 Regression] Bogus Wstringop-overflow in __builtin_memset() of an element of array of size 1 of struct

2021-07-20 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92718 Konstantin Kharlamov changed: What|Removed |Added CC||Hi-Angel at yandex dot ru

[Bug middle-end/93437] [9 Regression] bogus -Warray-bounds on protobuf generated code

2021-07-20 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93437 Konstantin Kharlamov changed: What|Removed |Added CC||Hi-Angel at yandex dot ru

[Bug c++/92559] New: Returning std∷map breaks tail-recursion optimization

2019-11-18 Thread Hi-Angel at yandex dot ru
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- The following code, exploiting tail-recursion, does not get optimized into a loop with -O3 option, so it crashes if you try to run it. #include using MyMap

[Bug middle-end/48363] Recursion not converted into a loop

2019-11-18 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48363 Konstantin Kharlamov changed: What|Removed |Added CC||Hi-Angel at yandex dot ru

[Bug tree-optimization/71761] missing tailcall optimization

2019-11-18 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71761 --- Comment #6 from Konstantin Kharlamov --- Thanks, okay, so, for the record: comment #3 seems no longer relevant, since the function `find_tail_calls()`, when analyzing g(), gets executed till its end. No early returns anywhere. Tested with: GC

[Bug tree-optimization/71761] missing tailcall optimization

2019-11-18 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71761 Konstantin Kharlamov changed: What|Removed |Added CC||Hi-Angel at yandex dot ru

[Bug middle-end/91515] missed optimization: no tailcall for types of class MEMORY

2019-11-15 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91515 --- Comment #2 from Konstantin Kharlamov --- I think this is a duplicate of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71761

[Bug sanitizer/92474] Sanitizer breaks tail-recursion optimization

2019-11-12 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92474 --- Comment #2 from Konstantin Kharlamov --- (In reply to Jakub Jelinek from comment #1) > Note, starting with r273603, the trunk doesn't tail call optimize this > either even without -fsanitize=, unless -fno-tree-sra. Is there a report for this

[Bug sanitizer/92474] New: Sanitizer breaks tail-recursion optimization

2019-11-12 Thread Hi-Angel at yandex dot ru
: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex 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.org, marxin at gcc dot gnu.org Target Milestone

[Bug sanitizer/91878] No sanitizer report for past-end access of std∷set

2019-09-24 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91878 --- Comment #7 from Konstantin Kharlamov --- @Jonathan Wakely I think you accidentally closed the report, would you mind to reopen it (I'm not seeing why would it be "invalid", people even confirmed that more support for std containers is being a

[Bug sanitizer/91878] No sanitizer report for past-end access of std∷set

2019-09-24 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91878 --- Comment #6 from Konstantin Kharlamov --- (In reply to Jonathan Wakely from comment #5) > No, that's not how undefined behaviour works. You are wrong to expect a crash No, in context of the report I'm not. You're correct this is not how UB w

[Bug sanitizer/91878] No sanitizer report for past-end access of std∷set

2019-09-24 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91878 --- Comment #4 from Konstantin Kharlamov --- (In reply to Marc Glisse from comment #3) > -D_GLIBCXX_DEBUG is the current way to add many checks to libstdc++, and it > detects this. Oh, cool, I'll make use of it, thanks for the hint!

[Bug sanitizer/91878] No sanitizer report for past-end access of std∷set

2019-09-24 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91878 --- Comment #1 from Konstantin Kharlamov --- Btw, worth noting that clang 8.0.1 does not handle it either.

[Bug sanitizer/91878] New: No sanitizer report for past-end access of std∷set

2019-09-24 Thread Hi-Angel at yandex dot ru
Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex 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.org, marxin at gcc dot gnu.org Target Milestone

[Bug c++/91777] No warning for iterator going out of scope

2019-09-17 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91777 --- Comment #5 from Konstantin Kharlamov --- (In reply to Martin Liška from comment #4) > (In reply to Konstantin Kharlamov from comment #3) > > (In reply to Martin Liška from comment #2) > > > I can see a ASAN error: > > > > Correct. You set th

[Bug c++/91777] No warning for iterator going out of scope

2019-09-17 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91777 --- Comment #3 from Konstantin Kharlamov --- (In reply to Martin Liška from comment #2) > I can see a ASAN error: Correct. You set the report status to WAITING: do you expect some answer from me, or was it accidental?

[Bug c++/91777] No warning for iterator going out of scope

2019-09-16 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91777 --- Comment #1 from Konstantin Kharlamov --- FTR, on IRC was referenced the following paper that may be interesting for implementors https://github.com/isocpp/CppCoreGuidelines/blob/master/docs/Lifetime.pdf

[Bug c++/91777] New: No warning for iterator going out of scope

2019-09-16 Thread Hi-Angel at yandex dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- The testcase below would've worked if instead of `return {l,…` was used `return {move(l),…`. But it wasn't, and due to lack of borrow-semantics in C++ language such mi

[Bug debug/91751] In backtrace, calls to c++ destructors are shown way afar from the actual place

2019-09-12 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91751 --- Comment #3 from Konstantin Kharlamov --- (In reply to Jonathan Wakely from comment #2) > The advantage of showing the location of the constructor is that you can see > which object is being destroyed. If the location was shown as the end of t

[Bug debug/91751] New: In backtrace, calls to c++ destructors are shown way afar from the actual place

2019-09-12 Thread Hi-Angel at yandex dot ru
: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- As the title says. I'm not aware of a way to get backtrace with gcc builtins, so I'm using gdb in testcas

[Bug c++/91436] Confusing suggestion to include

2019-08-15 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91436 --- Comment #6 from Konstantin Kharlamov --- Thank you!

[Bug c++/91436] New: Confusing suggestion to include

2019-08-13 Thread Hi-Angel at yandex dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- When the reason for an undefined function is too low c++ standard, g++ still suggests to include the header where it's supposed to be. As a result, when in a project you're not fam

[Bug sanitizer/91311] __attribute__ ((aligned (128))) results in stack-use-after-scope and stack-buffer-overflow

2019-08-05 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91311 Konstantin Kharlamov changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug sanitizer/91311] __attribute__ ((aligned (128))) results in stack-use-after-scope and stack-buffer-overflow

2019-07-31 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91311 --- Comment #1 from Konstantin Kharlamov --- Created attachment 46652 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46652&action=edit rr record for the testcase, results in stack-use-after-scope I'm also attaching the `rr` record for the

[Bug sanitizer/91311] New: __attribute__ ((aligned (128))) results in stack-use-after-scope and stack-buffer-overflow

2019-07-31 Thread Hi-Angel at yandex dot ru
Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc

[Bug tree-optimization/86050] Inline break tail-call optimization

2019-07-23 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86050 --- Comment #7 from Konstantin Kharlamov --- (In reply to Aso Renji from comment #6) > (In reply to Konstantin Kharlamov from comment #5) > > Just tested with 8.3.0 version on the other PC, same there, i.e. stack space > > does not increase when

[Bug tree-optimization/86071] -O0 -foptimize-sibling-calls doesn't optimize

2019-07-23 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86071 --- Comment #2 from Konstantin Kharlamov --- (In reply to Alexander Monakov from comment #1) > In GCC there's no way to selectively enable a few optimizations with their > -f flags at -O0 level: -O0 means that optimizations are completely disable

[Bug tree-optimization/86050] Inline break tail-call optimization

2019-07-23 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86050 --- Comment #5 from Konstantin Kharlamov --- (In reply to Konstantin Kharlamov from comment #4) > Works for me on gcc 9.1.0. I compile it as: > > $ g++ test.cpp -o a -O2 > > And then running `./a` results in a bunch of: > > Consumed 80

[Bug tree-optimization/86050] Inline break tail-call optimization

2019-07-23 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86050 --- Comment #4 from Konstantin Kharlamov --- Works for me on gcc 9.1.0. I compile it as: $ g++ test.cpp -o a -O2 And then running `./a` results in a bunch of: Consumed 80 bytes Consumed 80 bytes Consumed 80 bytes Consumed 8

[Bug middle-end/77433] warn about usage of object that outside of the scope of the object

2019-06-11 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77433 Konstantin Kharlamov changed: What|Removed |Added CC||Hi-Angel at yandex dot ru

[Bug c++/89326] [RFE] Highlight `required from here` in compile-error output

2019-02-13 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89326 --- Comment #2 from Konstantin Kharlamov --- Btw, I just occasionally noted: godbolt site adds their own highlight to GCC output, in particular they highlight the whole line with "required from here" with blue. Maybe something can be borrowed fro

[Bug c++/89326] New: [RFE] Highlight `required from here` in compile-error output

2019-02-12 Thread Hi-Angel at yandex dot ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- Compile-errors of constructors and templates can give a lot of output. Usually the first thing in debugging is to figure out where the

[Bug c++/89192] New: -Wuninitialized doesn't warn about a vector initialization with uninitialized field

2019-02-04 Thread Hi-Angel at yandex dot ru
IRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- # Steps to reproduce (in terms of terminal commands): $ cat test.cpp #include struct MyS

[Bug lto/89147] flto removes functions implemented in asm

2019-01-31 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89147 --- Comment #2 from Konstantin Kharlamov --- (In reply to Andrew Pinski from comment #1) > >Possible workarounds are welcome. > > Use -ffat-lto-objects or use a .s file. Thank you for reply! Adding a `-ffat-lto-objects` to the command above di

[Bug lto/89147] New: flto removes functions implemented in asm

2019-01-31 Thread Hi-Angel at yandex dot ru
Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru CC: marxin at gcc dot gnu.org Target Milestone: --- This came up while researching why -flto build of Mesa fails with linking errors. The asm snippet below is from an auto-generated code

[Bug c/89082] New: Feature request: provide annotation for code that's unlikely to be executed

2019-01-27 Thread Hi-Angel at yandex dot ru
erity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- In most projects a definite pattern that's unlikely to be executed is a PRINT_ERR macro which is basically a wrap

[Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor

2018-08-22 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87057 --- Comment #6 from Konstantin Kharlamov --- (In reply to Jonathan Wakely from comment #4) > (In reply to Konstantin Kharlamov from comment #2) > > As far as such trivial optimizations concerned, I'd prefer to rely on the > > compiler figuring th

[Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor

2018-08-22 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87057 --- Comment #3 from Konstantin Kharlamov --- (In reply to Konstantin Kharlamov from comment #2) > Thanks, I prefer the `{x}` to just `x` because in the latter I'm being *"in the former", sorry.

[Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor

2018-08-22 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87057 --- Comment #2 from Konstantin Kharlamov --- (In reply to Jonathan Wakely from comment #1) > That would require a lot of special-casing just for std::variant. Well, I think, in place of std::variant there could be any struct-wrapper; but I get i

[Bug c++/87057] New: in compilation error, gcc should note about deleted copy-constructor

2018-08-22 Thread Hi-Angel at yandex dot ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- When, in a code, a copy-constructor deleted but used, GCC issues an absolutely unhelpful message that it couldn't convert the arg

[Bug tree-optimization/86071] New: -O0 -foptimize-sibling-calls doesn't optimize

2018-06-06 Thread Hi-Angel at yandex dot ru
onent: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- # Steps to reproduce: $ cat test.cpp struct Node { Node* chi

[Bug c++/83425] New: No warning about assignment int to unsigned

2017-12-14 Thread Hi-Angel at yandex dot ru
++ Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- Steps to reproduce: $ cat test.cpp int ret_int() { return -1; } int main() { unsigned foo = ret_int(); (void)foo

[Bug c++/83161] Feature request: add a builtin for printing structs and classes

2017-11-25 Thread Hi-Angel at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83161 --- Comment #1 from Constantine Kharlamov --- Just another data point I forgot to mention: https://stackoverflow.com/questions/3311182/linux-c-easy-pretty-dump-printout-of-structs-like-in-gdb-from-source-co 7k views. Author of this one went as fa

[Bug other/83161] New: Feature request: add a builtin for printing structs and classes

2017-11-25 Thread Hi-Angel at yandex dot ru
Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- It's very useful for debugging to pretty-print an entire struct. Typically people firing up gdb for this, but sometimes it's

[Bug c++/81234] New: [regression] flexible array member not at end of ‘struct

2017-06-27 Thread Hi-Angel at yandex dot ru
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- This code used to work prior to gcc-7.1 (it worked on 4.x, and — I just tested — 6.3 works too, with a warning though): struct DataPacket