[Bug c++/110681] bogus warning -Wreturn-type for lambda in tparam list

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110681 Andrew Pinski changed: What|Removed |Added Keywords||c++-lambda Blocks|

[Bug c++/110681] New: bogus warning -Wreturn-type for lambda in tparam list

2023-07-15 Thread eric.niebler at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110681 Bug ID: 110681 Summary: bogus warning -Wreturn-type for lambda in tparam list Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/110680] erroneous error "non-template type 'C' used as a template"

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110680 Andrew Pinski changed: What|Removed |Added Blocks||107430 Keywords|

[Bug c++/110680] New: erroneous error "non-template type 'C' used as a template"

2023-07-15 Thread eric.niebler at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110680 Bug ID: 110680 Summary: erroneous error "non-template type 'C' used as a template" Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/95923] Failure to optimize bool checks into and

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95923 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > So there are some patterns for non boolean as for boolean values ~(a^b) is > converted to a==b so we need to support the == case for these: The non-boolean ones

[Bug tree-optimization/95923] Failure to optimize bool checks into and

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95923 --- Comment #4 from Andrew Pinski --- So there are some patterns for non boolean as for boolean values ~(a^b) is converted to a==b so we need to support the == case for these: ``` /* (a | b) & ~(a ^ b) --> a & b */ (simplify (bit_and:c

[Bug c++/109753] [13/14 Regression] pragma GCC target causes std::vector not to compile (always_inline on constructor)

2023-07-15 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109753 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #8

[Bug c++/109753] [13/14 Regression] pragma GCC target causes std::vector not to compile (always_inline on constructor)

2023-07-15 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109753 Xi Ruoyao changed: What|Removed |Added CC||gcc.gnu.org at aryanc403 dot com ---

[Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails)

2023-07-15 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110675 Xi Ruoyao changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug tree-optimization/110679] Missed optimization opportunity with countr_zero

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110679 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-07-15 Target|

[Bug c++/110679] New: Missed optimization opportunity with countr_zero

2023-07-15 Thread denis.yaroshevskij at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110679 Bug ID: 110679 Summary: Missed optimization opportunity with countr_zero Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug gcov-profile/110678] New: UBSAN error: signed integer overflow: 249946095246429448 * 100 cannot be represented in type 'long int' when compiling pr103513.c

2023-07-15 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110678 Bug ID: 110678 Summary: UBSAN error: signed integer overflow: 249946095246429448 * 100 cannot be represented in type 'long int' when compiling pr103513.c Product: gcc

[Bug fortran/110677] New: UBSAN error: load of value 1818451807, which is not a valid value for type 'expr_t' when compiling pr49213.f90

2023-07-15 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110677 Bug ID: 110677 Summary: UBSAN error: load of value 1818451807, which is not a valid value for type 'expr_t' when compiling pr49213.f90 Product: gcc Version:

[Bug libstdc++/110653] Support std::stoi etc. without C99 APIs

2023-07-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110653 --- Comment #12 from Jonathan Wakely --- (In reply to dave.anglin from comment #11) > Yes, this works. Great, thanks. > hppa64-hpux does not have have strtof.  Could std::stof be implemented using > strtod in this case? Maybe something like

[Bug middle-end/110586] [14 Regression] 10% fatigue2 regression on zen since r14-2369-g3a61ca1b925653

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110586 Andrew Pinski changed: What|Removed |Added Keywords|needs-bisection | Summary|[13/14 Regression]

[Bug middle-end/110586] [13/14 Regression] 10% fatigue2 regression on zen since r14-2369-g3a61ca1b925653

2023-07-15 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110586 Martin Jambor changed: What|Removed |Added CC||jamborm at gcc dot gnu.org

[Bug middle-end/51770] dump gimple lineno when dumping bb

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51770 --- Comment #3 from Andrew Pinski --- Created attachment 0 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=0=edit Patch which will fix this There are a few more tweaks I would like to make but I thought I post a first pass patch

[Bug sanitizer/110676] [11/12/13/14 Regression] strlen of array[1] should not be optimized to 1 if using ASAN

2023-07-15 Thread nrk at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110676 --- Comment #3 from nrk at disroot dot org --- Oops, forgot about https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107395. But that bug was for missed warning opportunity, while this one is about ASan. So I suppose both the bugs can coexist.

[Bug sanitizer/110676] [11/12/13/14 Regression] strlen of array[1] should not be optimized to 1 if using ASAN

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110676 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.5 Known to fail|

[Bug sanitizer/110676] strlen of array[1] should not be optimized to 1 if using ASAN

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110676 Andrew Pinski changed: What|Removed |Added Summary|builtin optimization|strlen of array[1] should

[Bug sanitizer/110676] New: builtin optimization prevents ASan from detecting OOB reads

2023-07-15 Thread nrk at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110676 Bug ID: 110676 Summary: builtin optimization prevents ASan from detecting OOB reads Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug fortran/110360] ABI issue with character,value dummy argument

2023-07-15 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110360 David Edelsohn changed: What|Removed |Added CC||dje at gcc dot gnu.org --- Comment

[Bug tree-optimization/93080] insert of an extraction on the same location is not optimized

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93080 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|pinskia at gcc

[Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails)

2023-07-15 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110675 --- Comment #2 from Xi Ruoyao --- Clearly related to PR109753, but I'm not sure if it's OK to just mark it as a dup.

[Bug rtl-optimization/110587] [14 regression] 96% pr28071.c compile time regression since r14-2337-g37a231cc7594d1

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110587 Andrew Pinski changed: What|Removed |Added Target||x86_64-linux-gnu --- Comment #2 from

[Bug middle-end/110587] [14 regression] 96% pr28071.c compile time regression since r14-2337-g37a231cc7594d1

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110587 Andrew Pinski changed: What|Removed |Added Summary|96% pr28071.c compile time |[14 regression] 96%

[Bug middle-end/110673] [14 regression] ICE when buliding opus (internal compiler error: in gimple_phi_arg_def_from_edge, at gimple.h:4699)

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110673 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0

[Bug other/110669] [14 regression] ICE in gcc.dg/torture/pr105132.c since r14-2515-gb77161e60bce7b

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110669 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0

[Bug target/59172] pdp11-aout makes a wrong code at the epilogue

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59172 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |9.0

[Bug target/59178] Stack corruption on register save/restore when using frame pointer on pdp-11

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59178 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |9.0

[Bug c++/110674] Structured binding fails with partial specialization of `std::tuple_element` without `std::size_t` NTTP

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110674 Andrew Pinski changed: What|Removed |Added Depends on||60679 --- Comment #2 from Andrew

[Bug c++/110674] Structured binding fails with partial specialization of `std::tuple_element` without `std::size_t` NTTP

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110674 Andrew Pinski changed: What|Removed |Added Depends on||83426 --- Comment #1 from Andrew

[Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails)

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110675 Andrew Pinski changed: What|Removed |Added Depends on||110334 --- Comment #1 from Andrew

[Bug libstdc++/110653] Support std::stoi etc. without C99 APIs

2023-07-15 Thread dave.anglin at bell dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110653 --- Comment #11 from dave.anglin at bell dot net --- On 2023-07-14 5:58 a.m., redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110653 > > --- Comment #10 from Jonathan Wakely --- > And this should fix it: > > ---

[Bug middle-end/110587] 96% pr28071.c compile time regression betwen g:8377cf1bf41a0a9d9d49de807b2341f0bf5d30cf and g:3a61ca1b9256535e1bfb19b2d46cde21f3908a5d

2023-07-15 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110587 Martin Jambor changed: What|Removed |Added CC||jamborm at gcc dot gnu.org,

[Bug c++/110524] [C++20] ICE with use of function template name with no prior declaration in decltype

2023-07-15 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110524 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/110441] c++17: temporary causes static member function call to confuse required copy elision

2023-07-15 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110441 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/110441] c++17: temporary causes static member function call to confuse required copy elision

2023-07-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110441 --- Comment #6 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:0de651db45c758f54e9ed917069795a3835499de commit r14-2539-g0de651db45c758f54e9ed917069795a3835499de Author: Patrick Palka Date:

[Bug c++/110524] [C++20] ICE with use of function template name with no prior declaration in decltype

2023-07-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110524 --- Comment #4 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:97ceaa110e1607ec8f4f1223200868e1642f3cc7 commit r14-2538-g97ceaa110e1607ec8f4f1223200868e1642f3cc7 Author: Patrick Palka Date:

[Bug libstdc++/110675] New: Compilation fails for a simple C++ program

2023-07-15 Thread gcc.gnu.org at aryanc403 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110675 Bug ID: 110675 Summary: Compilation fails for a simple C++ program Product: gcc Version: 13.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/110674] New: Structured binding fails with partial specialization of `std::tuple_element` without `std::size_t` NTTP

2023-07-15 Thread johelegp at gmail dot com via Gcc-bugs
lid use of incomplete type 'struct std::tuple_element<0, u>' 11 | auto [a] = u{}; | ^ In file included from /opt/compiler-explorer/gcc-trunk-20230715/include/c++/14.0.0/bits/stl_pair.h:62, from /opt/compiler-explorer/gcc-trunk-20230715/include/c++/14.0.0/

[Bug testsuite/110419] [14 regression] new test case gfortran.dg/value_9.f90 in r14-2050-gd130ae8499e0c6 fails

2023-07-15 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110419 --- Comment #15 from Mikael Morin --- rs6000_pass_by_reference returns true with -m32, and false with -m64. So the second argument is passed by reference with -m32, and by value with -m64. So the code in val looks right, it is the code in p

[Bug target/59178] Stack corruption on register save/restore when using frame pointer on pdp-11

2023-07-15 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59178 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com ---

[Bug target/29256] [11/12/13/14 regression] loop performance regression

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29256 --- Comment #75 from Andrew Pinski --- This looks fixed in GCC 11+; I tried x86_64, i686, powerpc (powerpc-spe is no longer supported). For 32bit powerpc we get: tuned_STREAM_Copy: .LFB0: .cfi_startproc lis 9,.LANCHOR0@ha

[Bug fortran/99139] ICE: gfc_get_default_type(): Bad symbol '__tmp_UNKNOWN_0_rank_1'

2023-07-15 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99139 --- Comment #9 from Steve Kargl --- On Sat, Jul 15, 2023 at 06:15:44AM +, pault at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99139 > > --- Comment #8 from Paul Thomas --- > (In reply to anlauf from comment #7) >

[Bug rtl-optimization/21182] [11/12/13/14 Regression] gcc can use registers but uses stack instead

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21182 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2006-01-15 20:37:58 |2023-7-15 --- Comment #36 from Andrew

[Bug rtl-optimization/110372] [14 Regression] ICE: insn does not satisfy its constraints: {*movdi_internal} with -mno-sse2

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110372 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/99139] ICE: gfc_get_default_type(): Bad symbol '__tmp_UNKNOWN_0_rank_1'

2023-07-15 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99139 --- Comment #8 from Paul Thomas --- (In reply to anlauf from comment #7) > Updating known-to-work/known to fail version. > > Paul/Steve: do you want to assign this PR to one of you? I am of two minds as to whether or not to backport the patch

[Bug target/110235] [14 Regression] Wrong use of us_truncate in SSE and AVX RTL representation

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110235 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug testsuite/109880] [14 regression] gcc.target/powerpc/fold-vec-extract-int.p8.c fails after r14-916-g9417b30499ce09

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109880 --- Comment #4 from Andrew Pinski --- Has this been fixed with the commit?

[Bug target/109971] [14 regression] Several powerpc64 vector test cases fail after r14-1242-gf574e2dfae7905

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109971 --- Comment #12 from Andrew Pinski --- Has this been fixed?

[Bug tree-optimization/110043] [14 Regression] ice in size_remaining, at pointer-query.cc:875

2023-07-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110043 --- Comment #2 from Andrew Pinski --- More simplified testcase: ``` __int128 g_116_1; extern char g_521[][8]; void func_24() { if (g_116_1 >= 0) g_521[g_116_1][g_116_1] &= 0; } ``` I think this ICEs with types which >= sizeof(offset_int)