[Bug middle-end/117811] [12/13/14/15 Regression] bad code for conditional right shift with autovec and neon since r12-897-gde56f95afaaa22

2025-03-25 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117811 Richard Earnshaw changed: What|Removed |Added Assignee|pinskia at gcc dot gnu.org |rearnsha at gcc dot gnu.org

[Bug tree-optimization/118796] [15 Regression] ICE when building atlas-ecmwf 0.40.0 (copy_reference_ops_from_ref, at tree-ssa-sccvn.cc:1109)

2025-03-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796 --- Comment #8 from Sam James --- Mine is still going. I have it self-contained but many source files, it'll be a little while. Yours dies in another pass and actually fails on verification rather than junk going into FRE. Maybe file it separat

[Bug target/117010] [nvptx] Incorrect ptx code-gen for C++ code with templates

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117010 --- Comment #5 from Jakub Jelinek --- C++ Itanium ABI has several types of constructors and destructors: ::= C1 # complete object constructor ::= C2 # base object constructor

[Bug target/118795] [15 Regression] ICE when building darkradiant-3.9.0 (with PCH?) (expand_expr_real_2, at expr.cc:10975)

2025-03-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118795 --- Comment #16 from Sam James --- ``` unsigned char *a(); struct b { void c() const; }; void b::c() const { unsigned char *d = a(), *e = a(); for (long f; f; ++f) { e[0] = e[1] = e[2] = d[0]; e[3] = d[0]; d += 4; e += 4;

[Bug c++/119387] [14/15 Regression] Regression in performance by a factor of 6 when building with debugging symbols since r14-5979

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug tree-optimization/118796] [15 Regression] ICE when building atlas-ecmwf 0.40.0 (copy_reference_ops_from_ref, at tree-ssa-sccvn.cc:1109)

2025-03-25 Thread lumosimann at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796 --- Comment #9 from Lukas Mosimann --- Pretty sure they are related, just need to add one line back (line 7): https://godbolt.org/z/5dqG3bj7e to get the same error: internal compiler error: in copy_reference_ops_from_ref, at tree-ssa-sccvn.cc

[Bug c++/119387] [14/15 Regression] Regression in performance by a factor of 6 when building with debugging symbols since r14-5979

2025-03-25 Thread fiesh at zefix dot tv via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387 --- Comment #13 from fiesh at zefix dot tv --- (In reply to Jakub Jelinek from comment #12) > Or if it is var tracking or statement frontiers, you can try -O2 -g > -fno-variable-tracking-assignments and/or -O2 -g -gno-statement-frontiers. % tim

[Bug tree-optimization/119417] [14/15 Regression] wrong code with `-O2`, uses uxtw instead of uxth causing different result on ADD instruction since r14-8680-g2f14c0dbb78985

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119417 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Assi

[Bug tree-optimization/118796] [15 Regression] ICE when building atlas-ecmwf 0.40.0 (copy_reference_ops_from_ref, at tree-ssa-sccvn.cc:1109)

2025-03-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796 --- Comment #11 from Sam James --- Created attachment 60875 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60875&action=edit foo.f90 Attaching from godbolt.

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 --- Comment #28 from Jonathan Wakely --- Indeed. I /think/ __attribute__((no_sanitize("undefined"))) would work on that kind of function. It doesn't work on the subject of this PR, but maybe that's because the "overflow" happens in a default a

[Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

2025-03-25 Thread b07902028 at csie dot ntu.edu.tw via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 119320, which changed state. Bug 119320 Summary: unexpected -Wstringop-overflow= when using memcpy https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119320 What|Removed |Added ---

[Bug tree-optimization/119320] unexpected -Wstringop-overflow= when using memcpy

2025-03-25 Thread b07902028 at csie dot ntu.edu.tw via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119320 He-Zhe Lin changed: What|Removed |Added Resolution|INVALID |--- Status|RESOLVED

[Bug middle-end/118627] gcc/omp-general.cc:4197: The code looks like reading uninitialised data

2025-03-25 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118627 Tobias Burnus changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug libstdc++/119135] Typo in as_const range adaptor

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119135 --- Comment #2 from GCC Commits --- The releases/gcc-14 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:925a744efec5a630eb9bf49e755c554a884fda99 commit r14-11446-g925a744efec5a630eb9bf49e755c554a884fda99 Author: Patrick Palka

[Bug target/117010] [nvptx] Incorrect ptx code-gen for C++ code with templates

2025-03-25 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117010 --- Comment #6 from Thomas Schwinge --- Thanks for having a look. In other words, you don't have an explanation off hand, why "weak" and "comdat" get lost in the GCN offloading path? GCN (ELF) does support all these things (to the best of my k

[Bug cobol/119283] cobol FE uses memrchr unconditionally.

2025-03-25 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119283 Iain Sandoe changed: What|Removed |Added Status|NEW |ASSIGNED URL|

[Bug tree-optimization/114206] [12/13/14/15 Regression] recursive function call vs local variable addresses

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114206 Andrew Pinski changed: What|Removed |Added Attachment #60885|0 |1 is obsolete|

[Bug tree-optimization/119471] New: (a * b) != 0 then we know that both a!=0 & b != 0

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119471 Bug ID: 119471 Summary: (a * b) != 0 then we know that both a!=0 & b != 0 Product: gcc Version: 14.1.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhanc

[Bug testsuite/119382] [15 Regression] gcc.target/powerpc/vsx-builtin-7.c fail starting with r15-7961-gdc47161c1f32c3

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119382 --- Comment #5 from GCC Commits --- The master branch has been updated by Sam James : https://gcc.gnu.org/g:4cac3f83c2b31ab352f537368e4efdadd5c47a9a commit r15-8916-g4cac3f83c2b31ab352f537368e4efdadd5c47a9a Author: Sam James Date: Tue Mar 2

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #17 from Tomasz Kamiński --- In the same file we have: __has_input_iter_cat.

[Bug c++/119466] Incorrect order of evaluation for assignment expression

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119466 --- Comment #2 from Jakub Jelinek --- I think w normally honor the C++17 rules, it can be seen on int foo (int &x, int *&y) { y = &x; x++; return x; } int & bar (int *p) { return *p; } int main () { int a = 4; int b = 9; int *c =

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #12 from Tomasz Kamiński --- I have realized that with the resolution of the https://cplusplus.github.io/LWG/lwg-defects.html#3749, you can run into this problem by doing: auto r = std::views::iota(__int128(0)) | std::views::take(5)

[Bug libstdc++/108487] [12/13/14/15 Regression] ~20-30x slowdown in populating std::vector from std::ranges::iota_view

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108487 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigne

[Bug c++/119466] Incorrect order of evaluation for assignment expression

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119466 --- Comment #3 from Jakub Jelinek --- And I guess it is solely if the RHS is a CALL_EXPR, if I change the testcase to int foo (int &x, int *&y) { y = &x; x++; return x; } int main () { int a = 4; int b = 9; int *c = &b; *c = foo (

[Bug c++/61105] [constexpr] poor diagnostic for new-expression in constant expression

2025-03-25 Thread Theodore.Papadopoulo at inria dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61105 Theodore.Papadopoulo at inria dot fr changed: What|Removed |Added CC||Theodore.Papadopoul

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #13 from 康桓瑋 --- (In reply to Tomasz Kamiński from comment #12) > I have realized that with the resolution of the > https://cplusplus.github.io/LWG/lwg-defects.html#3749, you can run into this > problem by doing: > > auto r = std::v

[Bug other/113168] ABOUT-NLS seems way out of date

2025-03-25 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113168 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug c++/66478] [constexpr] accepts-invalid with read of non-constant variable as discarded value

2025-03-25 Thread Theodore.Papadopoulo at inria dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66478 Theodore.Papadopoulo at inria dot fr changed: What|Removed |Added CC||Theodore.Papadopoul

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #11 from 康桓瑋 --- > Use __cpp17_input_iterator can still produce hard errors in some edge cases. With "hard errors", I mean the following: struct I { using difference_type = int; using value_type = int; int operator*() const;

[Bug c++/57820] [DR 253] NSDMI and const objects

2025-03-25 Thread Theodore.Papadopoulo at inria dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57820 Theodore.Papadopoulo at inria dot fr changed: What|Removed |Added CC||Theodore.Papadopoul

[Bug c++/65656] __builtin_constant_p should always be constexpr

2025-03-25 Thread Theodore.Papadopoulo at inria dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65656 Theodore.Papadopoulo at inria dot fr changed: What|Removed |Added CC||Theodore.Papadopoul

[Bug tree-optimization/119402] [14/15 Regression] `((-bool) & _6) & (~_6)` is not optimized to 0 on some targets since r14-5673

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119402 --- Comment #4 from Andrew Pinski --- (In reply to Tamar Christina from comment #3) > > Seems like it's better to handle this at the GIMPLE level like we do today > for the z case. Yes I agree I originally was going to file this as an enhancem

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #14 from 康桓瑋 --- I believe the correct way should be: else if constexpr (ranges::common_range<_Rg> && requires { requires derived_from>::iterator_category,

[Bug c++/119463] Wrong diagnostics about unnecessary parentheses or acceptance of invalid code

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119463 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-03-25 Ever confirmed|0

[Bug ada/119440] --enable-host-pie fails to link (stage1) gnatbind

2025-03-25 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119440 Eric Botcazou changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

[Bug c++/119463] Wrong diagnostics about unnecessary parentheses or acceptance of invalid code

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119463 --- Comment #3 from Andrew Pinski --- https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1828

[Bug ada/119440] --enable-host-pie fails to link (stage1) gnatbind

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119440 --- Comment #9 from GCC Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:7bec4570301c43ab948aca624d4cd7a3b33d65a1 commit r15-8901-g7bec4570301c43ab948aca624d4cd7a3b33d65a1 Author: Eric Botcazou Date: T

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #15 from Jonathan Wakely --- template using __iter_category_t = typename iterator_traits<_Iter>::iterator_category; template using _RequireInputIter = __enable_if_t, input_i

[Bug c++/119467] New: Missed optimization on wrapping builtin function

2025-03-25 Thread mserdarsanli at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119467 Bug ID: 119467 Summary: Missed optimization on wrapping builtin function Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug middle-end/119467] libcall for powi builtin not tail called

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119467 Andrew Pinski changed: What|Removed |Added Version|unknown |15.0 Last reconfirmed|

[Bug c++/119150] [14 Regression] Optimization causes function call arguments to consteval functions to not be manifestly constant-evaluated since r14-4140

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119150 Jakub Jelinek changed: What|Removed |Added Summary|[14/15 Regression] |[14 Regression] |Opti

[Bug fortran/117070] Procedure target error with parameter structure constructor

2025-03-25 Thread ivan.pribec at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117070 --- Comment #3 from Ivan Pribec --- According to my reading, the right hand side in the assignment matches the following two cases of constant expressions, quoting 10.1.12: 2) an array constructor where each element ... is a constant expression

[Bug fortran/119459] gfortran.dg/gomp/interop-5.f90 FAILs

2025-03-25 Thread parras at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119459 --- Comment #1 from Paul-Antoine Arras --- My mistake! This should now be fixed in commit e0a1d0e044c.

[Bug c++/119466] Incorrect result generated by g++

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119466 Jonathan Wakely changed: What|Removed |Added Keywords||wrong-code Status|UNCONFI

[Bug c++/119463] Wrong diagnostics about unnecessary parentheses or acceptance of invalid code

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119463 --- Comment #1 from Andrew Pinski --- >GCC accepts it just fine (found by my сolleague Egor). I think there might be a defect report about this case but I can't find it right now.

[Bug target/119428] [15 Regression] wrong code on e2fsprogs-1.47.2 since r15-8478-ge8a5f747cfa9c7

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119428 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/117010] [nvptx] Incorrect ptx code-gen for C++ code with templates

2025-03-25 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117010 --- Comment #7 from Thomas Schwinge --- First observation: the same (per my understanding) happens with LTO: compile this code, still at '-O0' with '-foffload=disable' but with '-flto', and see the x86_64 '[...].ltrans0.ltrans.s' file:

[Bug libstdc++/108487] [12/13/14 Regression] ~20-30x slowdown in populating std::vector from std::ranges::iota_view

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108487 --- Comment #15 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:e200f53a5556516ec831e6b7a34aaa0f10a4ab0a commit r15-8904-ge200f53a5556516ec831e6b7a34aaa0f10a4ab0a Author: Jonathan Wakely Date

[Bug fortran/119419] C prototype generation for functions returning C_FUNPTR incorrect

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119419 --- Comment #3 from GCC Commits --- The master branch has been updated by Thomas Koenig : https://gcc.gnu.org/g:737a5760bb24a0a945cc2c916ba452e3f0060c58 commit r15-8906-g737a5760bb24a0a945cc2c916ba452e3f0060c58 Author: Thomas Koenig Date: T

[Bug c++/101881] [12/13/14/15 Regression] ICE with vector type in template alias since r7-2549-gf3365c1201908df5

2025-03-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101881 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug middle-end/118627] gcc/omp-general.cc:4197: The code looks like reading uninitialised data

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118627 --- Comment #7 from GCC Commits --- The master branch has been updated by Tobias Burnus : https://gcc.gnu.org/g:c6279fffdbf8e13e46932eb8e100cfc579d06f2c commit r15-8892-gc6279fffdbf8e13e46932eb8e100cfc579d06f2c Author: Tobias Burnus Date: T

[Bug testsuite/115827] [13/14/15 Regression] uninit-17.c no longer emits expected warning on arm soft-float

2025-03-25 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115827 --- Comment #7 from Richard Earnshaw --- (In reply to Richard Biener from comment #6) > IMO a testsuite issue then. Why would a missing warning from return f; /* { dg-warning "may be used" "unconditional" } */ be a testsuite issue?

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #24 from GCC Commits --- The master branch has been updated by Tobias Burnus : https://gcc.gnu.org/g:56189d0ffeb35769637347720dfb24d2e4d7d47f commit r15-8893-g56189d0ffeb35769637347720dfb24d2e4d7d47f Author: Tobias Burnus Date:

[Bug target/119450] [14/15 Regression] Crash at -O3: during RTL pass: peephole2 since r14-4928

2025-03-25 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119450 --- Comment #4 from Uroš Bizjak --- (In reply to Jakub Jelinek from comment #3) > Created attachment 60872 [details] > gcc15-pr119450.patch > > Untested fix. OK.

[Bug target/119010] [15 Regression] 444.namd shows a huge compile-time regression with -mtune=znver5

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119010 --- Comment #8 from Richard Biener --- I have sent patches for two larger issues, remaining, when checking on gfortran.dg/vect/fast-math-mgrid-resid.f the ones below. It would be nice if the -fsched-verbose dumps would print recog data (alterna

[Bug c++/114525] [12/13/14/15 Regression] Incorrect code generated when setting a value through a pointer-to-member on a ternary returning an object reference

2025-03-25 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114525 --- Comment #5 from Simon Martin --- I'm back to this PR after a long while. I'm currently testing the following patch, that fixes the PR testcase diff --git a/gcc/cp/typeck2.cc b/gcc/cp/typeck2.cc index 1adc05aa86d..45edd180173 100644 --- a/gc

[Bug c++/119466] New: Incorrect result generated by g++

2025-03-25 Thread zleyk at tamu dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119466 Bug ID: 119466 Summary: Incorrect result generated by g++ Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/119463] Wrong diagnostics about unnecessary parentheses or acceptance of invalid code

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119463 --- Comment #2 from Andrew Pinski --- https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#125

[Bug c++/117504] [12 Regression] Incorrect code emitted when using "constexpr std::array" since r8-3497-g281e6c1d8f1b4c

2025-03-25 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117504 Simon Martin changed: What|Removed |Added Resolution|--- |FIXED Summary|[12/13/14 Regre

[Bug c++/55004] [meta-bug] constexpr issues

2025-03-25 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 117504, which changed state. Bug 117504 Summary: [12 Regression] Incorrect code emitted when using "constexpr std::array" since r8-3497-g281e6c1d8f1b4c https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117504 What

[Bug target/119465] gcc.target/i386/pr55583.c FAILs with 32-bit-default compiler

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119465 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug tree-optimization/96226] Failure to optimize shift+not to rotate

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96226 --- Comment #6 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:584b346a4c7a6e6e77da6dc80968401a3c08161d commit r15-8896-g584b346a4c7a6e6e77da6dc80968401a3c08161d Author: Jakub Jelinek Date: Tu

[Bug target/119428] [15 Regression] wrong code on e2fsprogs-1.47.2 since r15-8478-ge8a5f747cfa9c7

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119428 --- Comment #13 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:584b346a4c7a6e6e77da6dc80968401a3c08161d commit r15-8896-g584b346a4c7a6e6e77da6dc80968401a3c08161d Author: Jakub Jelinek Date:

[Bug ipa/118318] [15 regression] ICE when building firefox-134.0 with PGO

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118318 --- Comment #23 from GCC Commits --- The releases/gcc-14 branch has been updated by Martin Jambor : https://gcc.gnu.org/g:82bd83122a483275787fcd18131bf6cd91fbdbd4 commit r14-11447-g82bd83122a483275787fcd18131bf6cd91fbdbd4 Author: Martin Jambor

[Bug target/119464] VEC_PERM_EXPR not optimized to pslldq instruction for AVX2 and AVX512BW

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119464 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/117705] [15 regression] g++.dg/vect/pr64410.cc and gcc.dg/tree-ssa/pr32964.c FAIL

2025-03-25 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117705 Rainer Orth changed: What|Removed |Added CC||jamborm at gcc dot gnu.org --- Comment #1

[Bug tree-optimization/118796] [15 Regression] ICE when building atlas-ecmwf 0.40.0 (copy_reference_ops_from_ref, at tree-ssa-sccvn.cc:1109)

2025-03-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796 Sam James changed: What|Removed |Added Keywords|needs-source| Status|WAITING

[Bug tree-optimization/119417] [14/15 Regression] wrong code with `-O2`, uses uxtw instead of uxth causing different result on ADD instruction since r14-8680-g2f14c0dbb78985

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119417 --- Comment #5 from Jakub Jelinek --- Created attachment 60876 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60876&action=edit gcc15-pr119417.patch Untested fix.

[Bug target/119224] RISC-V: sad 16x16 spilling since r15-6673-gb755c151fde4ad

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119224 --- Comment #8 from GCC Commits --- The master branch has been updated by Vineet Gupta : https://gcc.gnu.org/g:cb6070c79dd9334e7cfff40bacd21da4f337cc33 commit r15-8895-gcb6070c79dd9334e7cfff40bacd21da4f337cc33 Author: Vineet Gupta Date: Mon

[Bug target/119465] New: gcc.target/i386/pr55583.c FAILs with 32-bit-default compiler

2025-03-25 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119465 Bug ID: 119465 Summary: gcc.target/i386/pr55583.c FAILs with 32-bit-default compiler Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug target/119465] gcc.target/i386/pr55583.c FAILs with 32-bit-default compiler

2025-03-25 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119465 Rainer Orth changed: What|Removed |Added Target Milestone|--- |15.0

[Bug cobol/119455] New: gcobol: needs optimization for direct assignments (don't call into runtime)

2025-03-25 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119455 Bug ID: 119455 Summary: gcobol: needs optimization for direct assignments (don't call into runtime) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: no

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-25 Thread ardb at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386 --- Comment #45 from Ard Biesheuvel --- (In reply to Alexander Monakov from comment #44) > (In reply to Ard Biesheuvel from comment #43) > > arch/arm64/Makefile specifies '-shared' for the linker flags, but does not > > pass -fpic of -fpie to th

[Bug cobol/119457] New: gcobol: big codegen for simple STRING plus malloc/free (and missing optimization)

2025-03-25 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119457 Bug ID: 119457 Summary: gcobol: big codegen for simple STRING plus malloc/free (and missing optimization) Product: gcc Version: 15.0 Status: UNCONFIRMED Severi

[Bug middle-end/118939] [14/15 Regression] ada: executable segfaults on arm-linux-gnueabi when assigning an access to controlled type since r14-2653-g2971ff7b1d564a

2025-03-25 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118939 --- Comment #20 from Eric Botcazou --- > If the value returned is different from earlier, then it has changed. Using > different methods for calculating the size during different passes would a > recipe for endless bugs, especially if crufted i

[Bug c++/117504] [12/13/14 Regression] Incorrect code emitted when using "constexpr std::array" since r8-3497-g281e6c1d8f1b4c

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117504 --- Comment #6 from GCC Commits --- The releases/gcc-14 branch has been updated by Simon Martin : https://gcc.gnu.org/g:f078a613bf85eff138c2567b599779dee6ae4b22 commit r14-11445-gf078a613bf85eff138c2567b599779dee6ae4b22 Author: Simon Martin D

[Bug cobol/119454] gcobol: error: unrecognized command-line option ‘-save-all’

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119454 Richard Biener changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Richard

[Bug target/119450] [14/15 Regression] Crash at -O3: during RTL pass: peephole2 since r14-4928

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119450 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug target/119458] Optimisation miss: atomic_ref increment

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119458 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Target

[Bug cobol/119455] gcobol: needs optimization for direct assignments (don't call into runtime)

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119455 Richard Biener changed: What|Removed |Added Last reconfirmed||2025-03-25 Keywords|

[Bug ipa/119376] [15 Regression] musttail does not get dropped after inlining?

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119376 --- Comment #22 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:698e337bec3a36230c72816fcb82f1a239e64eba commit r15-8878-g698e337bec3a36230c72816fcb82f1a239e64eba Author: Jakub Jelinek Date:

[Bug target/118795] [15 Regression] ICE when building darkradiant-3.9.0 (with PCH?) (expand_expr_real_2, at expr.cc:10975)

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118795 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug target/118795] [15 Regression] ICE when building darkradiant-3.9.0 (with PCH?) (expand_expr_real_2, at expr.cc:10975)

2025-03-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118795 --- Comment #9 from Sam James --- (Reducing it.)

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 --- Comment #10 from 康桓瑋 --- (In reply to Tomasz Kamiński from comment #9) > > Hum, meeting Cpp17LegacyIterator requirements does not mean it is a C++17 > > input iterator, only iterator_traits::iterator_category represents its > > category, s

[Bug target/118795] [15 Regression] ICE when building darkradiant-3.9.0 (with PCH?) (expand_expr_real_2, at expr.cc:10975)

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118795 --- Comment #10 from Jakub Jelinek --- typedef unsigned char V __attribute__((vector_size (16))); V foo (V x) { return __builtin_shuffle (x, x, (V) { 0, 0, 0, 0, 4, 4, 4, 4, 8, 8, 8, 8, 12, 12, 12, 12 }); } compiles fine.

[Bug c++/119447] [14/15 Regression] ICE Segmentation fault with incorrect template class declaration syntax and varadic parameter since r14-9374

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119447 --- Comment #2 from Jakub Jelinek --- pop_nested_class assumes push_nested_class actually did something, but that is not always the case: void push_nested_class (tree type) { /* A namespace might be passed in error cases, like A::B:C. */ if

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug fortran/119460] gfortran.dg/reduce_1.f90 FAILs

2025-03-25 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119460 Rainer Orth changed: What|Removed |Added Target Milestone|--- |15.0

[Bug fortran/119459] New: gfortran.dg/gomp/interop-5.f90 FAILs

2025-03-25 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119459 Bug ID: 119459 Summary: gfortran.dg/gomp/interop-5.f90 FAILs Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug fortran/119459] gfortran.dg/gomp/interop-5.f90 FAILs

2025-03-25 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119459 Rainer Orth changed: What|Removed |Added Target Milestone|--- |15.0

[Bug fortran/119460] New: gfortran.dg/reduce_1.f90 FAILs

2025-03-25 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119460 Bug ID: 119460 Summary: gfortran.dg/reduce_1.f90 FAILs Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug tree-optimization/114074] [12/13/14/15 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r8-343

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114074 Richard Biener changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|rguenth at gcc

[Bug tree-optimization/118867] [12/13/14/15 regression] -Wfree-nonheap-object false positive

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118867 Richard Biener changed: What|Removed |Added Target Milestone|15.0|12.5

[Bug rtl-optimization/117128] [14/15 regression] GCC trunk generates larger code than GCC 14 at -Os/Oz since r14-2161-g237e83e2158a3d

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117128 Richard Biener changed: What|Removed |Added Target Milestone|15.0|14.3

[Bug libstdc++/119415] flat_set::insert_range may not handle C++20 common-range

2025-03-25 Thread tkaminsk at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415 Tomasz Kamiński changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tkaminsk at gcc dot gnu.org

[Bug target/117010] [nvptx] Incorrect ptx code-gen for C++ code with templates

2025-03-25 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117010 Thomas Schwinge changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tschwinge at gcc dot gnu.org

[Bug target/119327] [12/13/14/15 Regression] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch since r12-5920

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 --- Comment #11 from Jakub Jelinek --- So, the difference that precludes inlining is OPTION_MASK_SAVE_TOC_INDIRECT. This is set conditionally based on /* If we can shrink-wrap the TOC register save separately, then use -msave-toc-indirec

[Bug target/114991] [14/15 Regression] AArch64: LDP pass does not handle some structure copies

2025-03-25 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114991 --- Comment #9 from Alex Coplan --- (In reply to Richard Biener from comment #8) > Is this now fixed on trunk? No, not really. The codegen at -O2 on trunk is: f: stp x29, x30, [sp, -144]! mov x29, sp add x0

[Bug target/119327] [12/13/14/15 Regression] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch since r12-5920

2025-03-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/118795] [15 Regression] ICE when building darkradiant-3.9.0 (with PCH?) (expand_expr_real_2, at expr.cc:10975)

2025-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118795 Richard Biener changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org --- Commen

<    1   2   3   >