[Bug c++/91465] [9/10 Regression] unexpected expression of kind overload (ICE)

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91465 --- Comment #3 from Marek Polacek --- Another test: enum class error {}; template void afunction(F) { error{char(0)}; } 93513.C: In function ‘void afunction(F)’: 93513.C:4:16: internal compiler error: unexpected expression ‘(char)(0)’ of kin

[Bug middle-end/93514] missing warning on a strlen with a negative or just past-the-end offset

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93514 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Blocks|

[Bug c++/91212] [8/9/10 Regression] const ignored for ctor arguments within return since r8-2493-g4ce8c5dea53d8073

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91212 --- Comment #4 from Marek Polacek --- Jason, do you want to change anything here? Though clang/icc/msvc++ seem to choose #1.

[Bug c++/82521] [8/9/10 Regression] No -Wtype-limits warning when using templates

2020-01-30 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82521 --- Comment #7 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:4dd468a042e19ef0fdbb1c53ca4060d4cb4972c5 commit r10-6357-g4dd468a042e19ef0fdbb1c53ca4060d4cb4972c5 Author: Jason Merrill Date: Th

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2020-01-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 92194, which changed state. Bug 92194 Summary: [9/10 Regression] maybe-uninitialized false positive with c++2a since r9-84-gcdc184174ce56df1 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92194 What|Removed

[Bug c++/92194] [9/10 Regression] maybe-uninitialized false positive with c++2a since r9-84-gcdc184174ce56df1

2020-01-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92194 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/80635] [8/9/10 regression] std::optional and bogus -Wmaybe-uninitialized warning

2020-01-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635 Jason Merrill changed: What|Removed |Added CC||malcolm.parsons at gmail dot com --- Co

[Bug tree-optimization/80635] [8/9/10 regression] std::optional and bogus -Wmaybe-uninitialized warning

2020-01-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635 --- Comment #41 from Jason Merrill --- (In reply to Jason Merrill from comment #38) > This is better: Complete revised testcase: #ifdef USE_STD #include using std::optional; #else using size_t = decltype(sizeof(1)); inline void *operator ne

[Bug c++/82521] [8/9 Regression] No -Wtype-limits warning when using templates

2020-01-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82521 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/89129] [meta-bug] bogus/missing -Wtype-limits warnings

2020-01-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89129 Bug 89129 depends on bug 82521, which changed state. Bug 82521 Summary: [8/9 Regression] No -Wtype-limits warning when using templates https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82521 What|Removed |Added

[Bug middle-end/93514] missing warning on a strlen with a negative or just past-the-end offset

2020-01-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93514 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug c++/92402] parsing error in lambda trail return type with decltype, statement expressions and structured bindings

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92402 --- Comment #3 from Marek Polacek --- Even shorter: int a[1]; void f() { []() -> decltype(({auto&& [x] = a; 0;})) { return 0; }; } clang++ compiles it.

[Bug c++/92402] parsing error in lambda trail return type with decltype, statement expressions and structured bindings

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92402 --- Comment #4 from Marek Polacek --- Not a regression though, so I'll leave it for GCC 11.

[Bug target/33989] Extra load/store for float with union

2020-01-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33989 Andrew Pinski changed: What|Removed |Added Resolution|WORKSFORME |FIXED Target Milestone|---

[Bug c++/92319] Macro expansion using the __VAOPT__ construct is incorrect when the variadic argument expands to nothing

2020-01-30 Thread eldlistmailingz at tropicsoft dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92319 Edward Diener changed: What|Removed |Added CC||eldlistmailingz@tropicsoft.

[Bug middle-end/93514] missing warning on a strlen with a negative or just past-the-end offset

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93514 --- Comment #3 from Martin Sebor --- There is no tail padding at ax2.a + 3, it's just past the end of the the four-byte object because ax2.a is at offset 1. -Warray-bounds takes tail padding into consideration by calling component_ref_size(). T

[Bug target/91320] [9/10 Regression] x86-64 code generation / register allocation regressed.

2020-01-30 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91320 Jeffrey A. Law changed: What|Removed |Added Status|WAITING |NEW CC|

[Bug target/91320] [9/10 Regression] x86-64 code generation / register allocation regressed.

2020-01-30 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91320 --- Comment #4 from Jeffrey A. Law --- Created attachment 47744 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47744&action=edit gzipped testcase that should work with gcc-10

[Bug tree-optimization/90377] [10 Regression] New -Wstringop-overflow with -O3 since r270852

2020-01-30 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90377 Jeffrey A. Law changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|2019-05-07 00:00

[Bug libgomp/93515] New: OpenMP target teams distribute parallel for with defaultmap not mapping correctly

2020-01-30 Thread jhdavis at udel dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93515 Bug ID: 93515 Summary: OpenMP target teams distribute parallel for with defaultmap not mapping correctly Product: gcc Version: 9.2.0 Status: UNCONFIRMED Severit

[Bug sanitizer/79096] [8/9/10 Regression] address sanitizer and jni does not work

2020-01-30 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79096 Jeffrey A. Law changed: What|Removed |Added Target Milestone|10.0|11.0

[Bug middle-end/93514] missing warning on a strlen with a negative or just past-the-end offset

2020-01-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93514 --- Comment #4 from Jakub Jelinek --- (In reply to Martin Sebor from comment #3) > There is no tail padding at ax2.a + 3, it's just past the end of the the > four-byte object because ax2.a is at offset 1. You're right, I was convinced I saw int

[Bug target/70682] [9/10 Regression] -fcompare-debug building LLVM with checking=release compiler on ppc64le

2020-01-30 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70682 Jeffrey A. Law changed: What|Removed |Added CC||law at redhat dot com Target Mileston

[Bug middle-end/93505] [8/9/10 Regression] wrong code or ICE with __builtin_bswap64() and rotation at -Og

2020-01-30 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93505 --- Comment #16 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:56b92750f83724177d2c6eae30c208e935a56a37 commit r10-6358-g56b92750f83724177d2c6eae30c208e935a56a37 Author: Jakub Jelinek Date: T

[Bug lto/93384] [10 Regression] Python 3.9.0a3 fails to build on ppc64le with GCC 10.0.1: redefined symbol cannot be used on reloc

2020-01-30 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93384 --- Comment #27 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:5fb07870fa4c86f529930bae76689ed5bdfcb192 commit r10-6359-g5fb07870fa4c86f529930bae76689ed5bdfcb192 Author: Jakub Jelinek Date: T

[Bug c++/92434] noexcept couldn't be deduced in function template

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92434 --- Comment #2 from Marek Polacek --- Extended testcase: template void foo_false(void(*)() noexcept(B)) { static_assert (!B); } template void foo_true(void(*)() noexcept(B)) { static_assert (B); } void f(); void fn() noexcept; void bar()

[Bug c++/92434] noexcept couldn't be deduced in function template

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92434 --- Comment #3 from Marek Polacek --- To match clang we could use --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -21470,6 +21470,12 @@ uses_deducible_template_parms (tree type) for (; parm; parm = TREE_CHAIN (parm)) if (uses_deducible_templa

[Bug c++/92434] noexcept couldn't be deduced in function template

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92434 --- Comment #4 from Marek Polacek --- That should probably be + if (spec && TREE_PURPOSE (spec) && deducible_expression (TREE_PURPOSE (spec))) Note that clang fails if noexcept(B) is changed to e.g. noexcept(!B).

[Bug c++/92434] noexcept couldn't be deduced in function template

2020-01-30 Thread nok.raven at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92434 --- Comment #5 from Nikita Kniazev --- > but does [temp.deduct] actually require that this works? Judging by CWG 2355 it does not.

[Bug c++/92434] [DR 2355] noexcept couldn't be deduced in function template

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92434 Marek Polacek changed: What|Removed |Added Summary|noexcept couldn't be|[DR 2355] noexcept couldn't

[Bug tree-optimization/93516] New: [10 regression] ICE in verify_sra_access_forest, at tree-sra.c:2342

2020-01-30 Thread dimhen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93516 Bug ID: 93516 Summary: [10 regression] ICE in verify_sra_access_forest, at tree-sra.c:2342 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/93501] [10 regression] gfortran.dg/pr93473.f90 ICEs starting with r10-6295

2020-01-30 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93501 seurer at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|-

[Bug c/88660] [8/9/10 Regression] Invalid report of "set but used variable" with -O

2020-01-30 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88660 --- Comment #3 from CVS Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:f9eb0973edb2b4eed4cdbba7105b8af7afe5b547 commit r10-6360-gf9eb0973edb2b4eed4cdbba7105b8af7afe5b547 Author: Jeff Law Date: Thu Jan 30 1

[Bug c/88660] [8/9 Regression] Invalid report of "set but used variable" with -O

2020-01-30 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88660 Jeffrey A. Law changed: What|Removed |Added Summary|[8/9/10 Regression] Invalid |[8/9 Regression] Invalid

[Bug c++/93496] Miscompile of range-for over braced-init-list in constructor of class with virtual inheritance

2020-01-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93496 --- Comment #4 from Jonathan Wakely --- Fixed on trunk by r266893 for PR 86669, which doesn't seem related. That change was backported to the gcc-8 branch as r267702 for GCC 8.3 which doesn't explain how it was fixed for GCC 8.2

[Bug rtl-optimization/90275] [8/9/10 Regression] ICE: in insert_regs, at cse.c:1128 with -O2 -fno-dce -fno-tree-dce

2020-01-30 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90275 Jeffrey A. Law changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #

[Bug target/93125] ICE in insert_regs, at cse.c:1128

2020-01-30 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93125 Jeffrey A. Law changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/14179] [8/9/10 Regression] out of memory while parsing array with many initializers

2020-01-30 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14179 --- Comment #80 from Jason Merrill --- (In reply to Richard Biener from comment #77) > So the "low hanging fruit" remaining is reshape_init_array copying the whole > array even if not necessary. > > INTEGER_CSTs still account for most of the mem

[Bug middle-end/93517] New: bogus -Wrestrict on sprintf with unknown strings bounded by array size

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93517 Bug ID: 93517 Summary: bogus -Wrestrict on sprintf with unknown strings bounded by array size Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug target/91320] [9/10 Regression] x86-64 code generation / register allocation regressed.

2020-01-30 Thread vmakarov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91320 Vladimir Makarov changed: What|Removed |Added CC||vmakarov at gcc dot gnu.org --- Comme

[Bug middle-end/93518] New: missing warning on a possible overflow by sprintf %s with an allocated argument

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93518 Bug ID: 93518 Summary: missing warning on a possible overflow by sprintf %s with an allocated argument Product: gcc Version: 10.0 Status: UNCONFIRMED Severity:

[Bug c++/91465] [9/10 Regression] unexpected expression of kind overload (ICE)

2020-01-30 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91465 --- Comment #4 from Marek Polacek --- This is the fix, thought I recall it broke something. But we want to use fold_ here because we can have a non-dependent template code like CAST_EXPR. --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -981,7

[Bug tree-optimization/93440] scalar unrolled loop makes vectorized code unreachable

2020-01-30 Thread ikonomisma at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93440 --- Comment #4 from ikonomisma at googlemail dot com --- I can reproduce this on both x86_64 and AArch64 Ubuntu 19.10. According to an answer to my question on stack overflow (https://stackoverflow.com/a/59995702/3185968), using std::transform wi

[Bug analyzer/93457] ICE in make_region_for_type, at analyzer/region-model.cc:5983

2020-01-30 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93457 --- Comment #2 from Arseny Solokha --- It's probably a duplicate of PR93511 now.

[Bug target/92424] [aarch64] Broken code with -fpatchable-function-entry and BTI

2020-01-30 Thread i at maskray dot me
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92424 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #8 from F

[Bug analyzer/93356] ICE in add_constraint, at analyzer/constraint-manager.cc:672

2020-01-30 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93356 --- Comment #2 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:e978955dd720d5cc0e5141a1e9b943a3cc41 commit r10-6361-ge978955dd720d5cc0e5141a1e9b943a3cc41 Author: David Malcolm Date: Th

[Bug analyzer/93356] ICE in add_constraint, at analyzer/constraint-manager.cc:672

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

[Bug middle-end/93519] New: bogus -Wrestrict for strcpy(d, s) call guarded by d != s

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93519 Bug ID: 93519 Summary: bogus -Wrestrict for strcpy(d, s) call guarded by d != s Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priori

[Bug middle-end/93519] bogus -Wrestrict for strcpy(d, s) call guarded by d != s

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93519 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED

[Bug c++/92169] crash on referring to a local class member by unqualified name from outside the enclosing function

2020-01-30 Thread richard-gccbugzilla at metafoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92169 --- Comment #4 from Richard Smith --- Aha! godbolt.org implicitly adds -g to its command line. Try that; that causes a crash for this testcase for me with GCC 9.2.1.

[Bug target/65249] unable to find a register to spill in class 'R0_REGS' when compiling protobuf on sh4

2020-01-30 Thread bugdal at aerifal dot cx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65249 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment #27 f

[Bug analyzer/93520] New: Compilation of Python 3.9 with gcc 10 and -fanalyzer fails with internal compiler error

2020-01-30 Thread cstratak at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93520 Bug ID: 93520 Summary: Compilation of Python 3.9 with gcc 10 and -fanalyzer fails with internal compiler error Product: gcc Version: 10.0 Status: UNCONFIRMED Se

[Bug tree-optimization/93521] New: 40% slower in O2 than O1 (tree-pre)

2020-01-30 Thread hehaochen at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93521 Bug ID: 93521 Summary: 40% slower in O2 than O1 (tree-pre) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimi

[Bug target/93492] Broken code with -fpatchable-function-entry and -fcf-protection=full

2020-01-30 Thread i at maskray dot me
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #2 from F

[Bug fortran/93522] New: f951: internal compiler error: in gfc_release_symbol, at fortran/symbol.c:3121

2020-01-30 Thread gsocshubham at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93522 Bug ID: 93522 Summary: f951: internal compiler error: in gfc_release_symbol, at fortran/symbol.c:3121 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: n

[Bug c++/92099] [9/10 Regression] static_assert of struct template of false_type succeed with GCC8 but not GCC9

2020-01-30 Thread sunxuanmailbox at 163 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92099 --- Comment #5 from 孙晅 --- (In reply to Jason Merrill from comment #4) > How is this type-dependent? id is value-dependent, but not type-dependent: > it has type E. This seems like a valid (though optional) diagnostic. But since id is a templa

[Bug libfortran/90374] Fortran 2018: Support d0.d, e0.d, es0.d, en0.d, g0.d and ew.d e0 edit descriptors for output

2020-01-30 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90374 --- Comment #29 from Jerry DeLisle --- I think this last patch above fixes the last adjustment needed. I could be wrong I suppose. Is this ready to close?

[Bug c/88660] [8/9 Regression] Invalid report of "set but used variable" with -O

2020-01-30 Thread alexander.hirsch at gin dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88660 --- Comment #5 from Alexander Hirsch --- (In reply to Jeffrey A. Law from comment #4) > Fixed on the trunk for gcc-10. Thanks :-)

<    1   2   3