[Bug c++/96689] New: Segmentation fault when defaulting operator<=> on enum er enum class

2020-08-18 Thread breyer.marcel at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96689 Bug ID: 96689 Summary: Segmentation fault when defaulting operator<=> on enum er enum class Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/96690] New: [10/11 Regression] ICE in write_type since r10-6087

2020-08-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96690 Bug ID: 96690 Summary: [10/11 Regression] ICE in write_type since r10-6087 Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug c++/96687] new char[4]{"foo"} doesn't work

2020-08-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96687 --- Comment #1 from Jonathan Wakely --- This is PR 77841

[Bug fortran/96613] SIGFPE on min1() with -ffpe-trap=invalid switch

2020-08-18 Thread anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96613 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|-

[Bug fortran/96686] MIN/MAX should reject character arguments of different kind rather than ICE

2020-08-18 Thread anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96686 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/77841] a new expression of a char array cannot be initialized by a string literal

2020-08-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77841 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/96687] new char[4]{"foo"} doesn't work

2020-08-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96687 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/77841] a new expression of a char array cannot be initialized by a string literal

2020-08-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77841 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c++/77841] a new expression of a char array cannot be initialized by a string literal

2020-08-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77841 --- Comment #3 from Marek Polacek --- The problem is probably that we're not doing the {"str_cst"} -> "str_cst" unwrapping that reshape_init / cp_complete_array_type does.

[Bug c++/96690] [10/11 Regression] ICE in write_type since r10-6087

2020-08-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96690 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Target Milestone|---

[Bug c++/96690] [10/11 Regression] ICE in write_type since r10-6087

2020-08-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96690 --- Comment #2 from Jakub Jelinek --- Maybe related to or same as PR93028, but that one is missing a test, so hard to say.

[Bug c++/93028] internal compiler error: in write_type, at cp/mangle.c:2073

2020-08-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93028 Marek Polacek changed: What|Removed |Added Resolution|--- |DUPLICATE Status|WAITING

[Bug c++/96690] [10/11 Regression] ICE in write_type since r10-6087

2020-08-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96690 Marek Polacek changed: What|Removed |Added CC||itchka at compuserve dot com --- Comment

[Bug c++/96199] [10/11 Regression] internal compiler error: in tsubst_copy with CTAD for alias templates

2020-08-18 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96199 --- Comment #5 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:b871301f09be7061904dc87880919d30e6afef8f commit r11-2748-gb871301f09be7061904dc87880919d30e6afef8f Author: Jason Merrill Date: Fr

[Bug c++/96199] [10/11 Regression] internal compiler error: in tsubst_copy with CTAD for alias templates

2020-08-18 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96199 --- Comment #6 from CVS Commits --- The releases/gcc-10 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:7fc49a5777943aab11e227136d00a836f28f12b2 commit r10-8639-g7fc49a5777943aab11e227136d00a836f28f12b2 Author: Jason Merrill D

[Bug c++/96199] [10/11 Regression] internal compiler error: in tsubst_copy with CTAD for alias templates

2020-08-18 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96199 --- Comment #4 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:9125cf8c33b710c378bfb3c7e67ec2f9f1c523c9 commit r11-2747-g9125cf8c33b710c378bfb3c7e67ec2f9f1c523c9 Author: Jason Merrill Date: Th

[Bug c++/83445] conversion function has too high priority in overload resolution

2020-08-18 Thread karzh at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83445 --- Comment #4 from Alexander Karzhenkov --- r269667 concerns initializing an object from prvalue. Here we have `Target` being initialized from lvalue if type `Source`. What we can consider as being initialized from prvalue is the argument of co

[Bug c++/96355] [concepts] internal compiler error: in tsubst_pack_expansion, at cp/pt.c:12928

2020-08-18 Thread rwdougla at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96355 Robert Douglas changed: What|Removed |Added CC||rwdougla at gmail dot com --- Comment #

[Bug tree-optimization/96688] Failure to optimize shift-right+not of constant to avoid not

2020-08-18 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96688 --- Comment #1 from Gabriel Ravier --- int f(int x) { return ~(x + 123); } A very similar optimization can be done with this, by converting this to `return ~123 - x;` (and the constant can be swapped out with pretty much any other constant h

[Bug tree-optimization/96691] New: Failure to optimize not+or+xor with constants to and+xor with bitwise not-ed constants

2020-08-18 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96691 Bug ID: 96691 Summary: Failure to optimize not+or+xor with constants to and+xor with bitwise not-ed constants Product: gcc Version: 11.0 Status: UNCONFIRMED Sev

[Bug tree-optimization/96691] Failure to optimize bitwise not+or+xor with constants to and+xor with bitwise not-ed constants

2020-08-18 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96691 --- Comment #1 from Gabriel Ravier --- int f(int x) { return (~x & 123) ^ 321; } A very similar transformation can be done with this code, transforming it to `return (x & 123) ^ 314;` (according to LLVM), and a similar transformation should

[Bug tree-optimization/96692] New: Failure to optimize xor+or+xor to andnot+xor

2020-08-18 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96692 Bug ID: 96692 Summary: Failure to optimize xor+or+xor to andnot+xor Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-

[Bug rtl-optimization/96692] Failure to optimize xor+or+xor to andnot+xor

2020-08-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96692 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Component|tree-opti

[Bug tree-optimization/96693] New: GCC produces incorrect code with -O2 for loops

2020-08-18 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96693 Bug ID: 96693 Summary: GCC produces incorrect code with -O2 for loops Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tre

[Bug tree-optimization/96694] New: Failure to optimize min/max pattern using two binary nots to min/max pattern using one binary not

2020-08-18 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96694 Bug ID: 96694 Summary: Failure to optimize min/max pattern using two binary nots to min/max pattern using one binary not Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug c++/70462] Unnecessary "base object constructor" for final classes

2020-08-18 Thread falemagn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70462 --- Comment #7 from Fabio Alemagna --- (In reply to Pádraig Brady from comment #6) > This does introduce an ABI incompatibility. > > I'm seeing this with kuduraft-1.8 compiled with GCC 10, giving linker errors > from clang 9.0.20190721 like: >

[Bug tree-optimization/96695] New: Failure to optimize combination of pointer comparison to nullptr and another pointer

2020-08-18 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96695 Bug ID: 96695 Summary: Failure to optimize combination of pointer comparison to nullptr and another pointer Product: gcc Version: 11.0 Status: UNCONFIRMED Sever

[Bug tree-optimization/96695] Failure to optimize combination of pointer comparison to nullptr and another pointer

2020-08-18 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96695 --- Comment #1 from Gabriel Ravier --- PS: Very similar transformations can be done with alike patterns like `(x == 0) && (x <= y)`, which can be optimized to `x == 0`.

[Bug tree-optimization/96696] New: Failure to optimize div+mul to mod+sub

2020-08-18 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96696 Bug ID: 96696 Summary: Failure to optimize div+mul to mod+sub Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimi

[Bug tree-optimization/96697] New: Failure to optimize mod+div to 0

2020-08-18 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96697 Bug ID: 96697 Summary: Failure to optimize mod+div to 0 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug analyzer/96648] [11 Regression] ICE in get_field_at_bit_offset, at analyzer/region.cc:229

2020-08-18 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96648 --- Comment #1 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:400abebf48a90d0797718ab7c3864de331e85b70 commit r11-2753-g400abebf48a90d0797718ab7c3864de331e85b70 Author: David Malcolm Date: Mo

[Bug analyzer/96651] gcc 10 -fanalyzer fail to track (static) global variable in a switch

2020-08-18 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96651 --- Comment #2 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:623bc0276849d48ada5a7a2e3e94bd79de42c3db commit r11-2754-g623bc0276849d48ada5a7a2e3e94bd79de42c3db Author: David Malcolm Date: Mo

[Bug analyzer/96648] [11 Regression] ICE in get_field_at_bit_offset, at analyzer/region.cc:229

2020-08-18 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96648 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug analyzer/96651] gcc 10 -fanalyzer fail to track (static) global variable in a switch

2020-08-18 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96651 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/96698] New: aarch64: ICE during GIMPLE pass:vect

2020-08-18 Thread yangyang305 at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96698 Bug ID: 96698 Summary: aarch64: ICE during GIMPLE pass:vect Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimiza

[Bug analyzer/96699] New: [11 Regression] ICE in fold_convert_const_int_from_real, at fold-const.c:2038

2020-08-18 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96699 Bug ID: 96699 Summary: [11 Regression] ICE in fold_convert_const_int_from_real, at fold-const.c:2038 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: no

[Bug target/96506] ICE when using an MMA type as a function param

2020-08-18 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96506 --- Comment #3 from CVS Commits --- The releases/gcc-10 branch has been updated by Peter Bergner : https://gcc.gnu.org/g:43edad43b2cee17fb7575c40a9dafac3fe79ba1c commit r10-8641-g43edad43b2cee17fb7575c40a9dafac3fe79ba1c Author: Peter Bergner D

[Bug target/96506] ICE when using an MMA type as a function param

2020-08-18 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96506 Peter Bergner changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug analyzer/96666] [11 Regression] Analyzer creates too many regions for a particular program

2020-08-18 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 --- Comment #2 from Arseny Solokha --- Created attachment 49078 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49078&action=edit Testcase 3 Finally, a testcase which is valid C. Note that cc1plus is still necessary to trigger the ICE. int

[Bug gcov-profile/96622] gcov misses to count break statement

2020-08-18 Thread roland.illig at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96622 --- Comment #3 from Roland Illig --- Ah, thanks for the pointer. I thought I had used -O0 in the larger project as well, but I hadn't. Just as a suggestion, would it make sense to apply the coverage at the source code level (before any optimiza

[Bug lto/96700] New: undefined reference to `failure_on_line_796'

2020-08-18 Thread sujian.liu at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96700 Bug ID: 96700 Summary: undefined reference to `failure_on_line_796' Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto

[Bug c++/83445] conversion function has too high priority in overload resolution

2020-08-18 Thread karzh at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83445 --- Comment #5 from Alexander Karzhenkov --- Also note that const-qualifier on `Source::operator Target()` affects the conversion sequence (see https://godbolt.org/z/MexGW9). This seems inconsistent here.

<    1   2