[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 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 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 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 target/119464] VEC_PERM_EXPR not optimized to pslldq instruction for AVX2 and AVX512BW

2025-03-25 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119464 Hongtao Liu changed: What|Removed |Added CC||liuhongt at gcc dot gnu.org --- Comment #

[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 --- Comment #9 from Andrew Pinski --- Created attachment 60885 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60885&action=edit slightly more complex testcase Still fails with `-Os -fno-tree-ccp -fno-tree-copy-prop -fno-tree-forwprop -fno

[Bug libstdc++/119469] iter_rvalue_reference_t is wrong for function types

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119469 --- Comment #3 from Jonathan Wakely --- We define iter_rvalue_reference_t in terms of remove_reference_t&& instead of decltype(std::move(*std::declval())) and they're not the same. But I don't understand why. This fixes iter_rvalue_reference_t

[Bug libstdc++/119469] iter_rvalue_reference_t is wrong for function types

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119469 --- Comment #2 from Jonathan Wakely --- The bug is because I implemented the result of ranges::iter_move in terms of remove_reference_t&& because that's what I assume the type of std::move(*E) to be. But when E is a function reference, *E first

[Bug tree-optimization/119470] Missed strlen despite unreachable() in noinline increment function

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

[Bug tree-optimization/119470] Missed strlen despite unreachable() in noinline increment function

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119470 --- Comment #3 from Andrew Pinski --- Well inc being not inlined causes issues.

[Bug tree-optimization/119470] Missed strlen despite unreachable() in noinline increment function

2025-03-25 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119470 --- Comment #2 from Kael Franco --- Created attachment 60884 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60884&action=edit -fdump-tree-optimized

[Bug tree-optimization/119470] Missed strlen despite unreachable() in noinline increment function

2025-03-25 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119470 --- Comment #1 from Kael Franco --- Created attachment 60883 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60883&action=edit -fdump-tree-original

[Bug tree-optimization/119470] New: Missed strlen despite unreachable() in noinline increment function

2025-03-25 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119470 Bug ID: 119470 Summary: Missed strlen despite unreachable() in noinline increment function Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal

[Bug fortran/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 pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796 --- Comment #16 from Andrew Pinski --- I should mention in my reduced testcase if I change the name of either function named z to something different, we get the correct result which is why I mentioned: "the front-end seems to have copied the bo

[Bug libstdc++/119469] iter_rvalue_reference_t is wrong for function types

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119469 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/118920] ICE when importing memory and filesystem and a module-compiled system header importing memory

2025-03-25 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118920 --- Comment #7 from Nathaniel Shead --- There might be more to it as well; the following sample (reduced from a different error) complains about conflicting declarations: // shared_ptr.hpp template struct unique_ptr { template friend

[Bug libstdc++/119469] New: iter_rvalue_reference_t is wrong for function types

2025-03-25 Thread blubban at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119469 Bug ID: 119469 Summary: iter_rvalue_reference_t is wrong for function types Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug libstdc++/101587] ranges::uninitialized_copy/move incorrectly uses std::min

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101587 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |15.0 Last reconfirmed|2021-07-23 00

[Bug libstdc++/111351] constexpr std::string objects permitted to escape constant evaluation when SSO

2025-03-25 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111351 --- Comment #10 from Arthur O'Dwyer --- > > Would it be at least possible to make the error clearer? > I don't think that's possible to do in the library. Agreed. IMO this bug should be marked RESOLVED at this point, because James Knight's pat

[Bug libstdc++/111351] constexpr std::string objects permitted to escape constant evaluation when SSO

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111351 --- Comment #9 from Jonathan Wakely --- (In reply to Theodore.Papadopoulo from comment #8) > Ideally, mention the SSO optimization and its limits ? I don't think that's possible to do in the library. It's fine for a constant evaluation to const

[Bug fortran/116706] Unable to fill allocatable array component of a derived type instance in a pointer array within a derived type

2025-03-25 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116706 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|ASS

[Bug fortran/116706] Unable to fill allocatable array component of a derived type instance in a pointer array within a derived type

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116706 --- Comment #6 from GCC Commits --- The releases/gcc-13 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:f017297cc338b3db6827408574e7943d5a09b3de commit r13-9451-gf017297cc338b3db6827408574e7943d5a09b3de Author: Harald Anlauf

[Bug fortran/116706] Unable to fill allocatable array component of a derived type instance in a pointer array within a derived type

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116706 --- Comment #5 from GCC Commits --- The releases/gcc-14 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:de9500d93eed789bf7bc4a82b522edb6dd2b6202 commit r14-11448-gde9500d93eed789bf7bc4a82b522edb6dd2b6202 Author: Harald Anlauf

[Bug web/119227] Does the generated HTML for cobol get installed to the website?

2025-03-25 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119227 --- Comment #13 from Mark Wielaard --- (In reply to James K. Lowden from comment #12) > The inability to create a PDF from groff suggests an old version is > installed. The PDF driver was introduced with version 1.22 > (https://lists.gnu.org/ar

[Bug target/119458] inc/dec could be used for generic tuning for atomics

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119458 Andrew Pinski changed: What|Removed |Added Summary|Optimisation miss: |inc/dec could be used for

[Bug c++/64500] push_to_top_level() shows up high during build of modern C++ code

2025-03-25 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64500 --- Comment #9 from ak at gcc dot gnu.org --- I can test it later, but it would surprise me if it helps. The problem is not the computation but the misses. When profiling it I see a lot of cache misses on "cmp" memory load. So likely need to do so

[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 pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118795 --- Comment #17 from Andrew Pinski --- Created attachment 60881 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60881&action=edit Reduced testcase without any undefined code in it

[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 rogerio.souza at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119417 --- Comment #6 from Rogério de Souza Moraes --- I confirm that the patch gcc15-pr119417.patch backported to GCC 14.2 fixed the issue on Arm (aarch64). Is this patch going to be used on trunk and officially backported to GCC 14.2?

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

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

[Bug cobol/119241] cobol Front end uses host floating point (128b) support

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119241 --- Comment #28 from GCC Commits --- The master branch has been updated by Robert Dubner : https://gcc.gnu.org/g:e9adfb839f0d6aa05fd35d332b015623a33c3ce8 commit r15-8913-ge9adfb839f0d6aa05fd35d332b015623a33c3ce8 Author: Bob Dubner Date: Tue

[Bug target/118151] Relax the SVE PTEST matching conditions for any/none (ne/eq)

2025-03-25 Thread Spencer.Abson at arm dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118151 Spencer Abson changed: What|Removed |Added CC||Spencer.Abson at arm dot com --- Commen

[Bug fortran/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 pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796 Andrew Pinski changed: What|Removed |Added Attachment #60875|0 |1 is obsolete|

[Bug target/119468] New: PPCLE: Inefficient implementation of __builtin_parityll

2025-03-25 Thread jens.seifert at de dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119468 Bug ID: 119468 Summary: PPCLE: Inefficient implementation of __builtin_parityll Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Pri

[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 #16 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #15) > template > using __iter_category_t > = typename iterator_traits<_Iter>::iterator_category; > > template > using _RequireInputIter = >

[Bug fortran/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 pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796 --- Comment #14 from Andrew Pinski --- Created attachment 60879 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60879&action=edit Just the verification patch Note this is NOT the patch to fix the issue; it is to catch the issue earlier.

[Bug c++/101881] [12/13/14 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 Resolution|--- |FIXED Summary|[12/13/14/15 R

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

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101881 --- Comment #7 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:7c63237ccfd9cb76c513f567429e939709c193e4 commit r15-8912-g7c63237ccfd9cb76c513f567429e939709c193e4 Author: Marek Polacek Date: Tu

[Bug c++/114525] [12/13/14 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 Simon Martin changed: What|Removed |Added Summary|[12/13/14/15 Regression]|[12/13/14 Regression]

[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 cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114525 --- Comment #6 from GCC Commits --- The master branch has been updated by Simon Martin : https://gcc.gnu.org/g:35ce9afc84a63fb647a90cbecb2adf3e748178be commit r15-8911-g35ce9afc84a63fb647a90cbecb2adf3e748178be Author: Simon Martin Date: Tue

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #29 from GCC Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:0fb10aca02852b2e8d78a78c07aa2f62aec6a07e commit r15-8910-g0fb10aca02852b2e8d78a78c07aa2f62aec6a07e Author: Iain Sandoe Date: Tu

[Bug other/119250] GCC configure fails to find the declaration of basename() on hosts that need

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119250 --- Comment #8 from GCC Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:87d60bcba534b53255c19aae7d2d24ff7a1be414 commit r15-8908-g87d60bcba534b53255c19aae7d2d24ff7a1be414 Author: Iain Sandoe Date: Thu

[Bug other/119218] libiberty configure test fails for basename on targets which declare it in .

2025-03-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119218 --- Comment #17 from GCC Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:f3d07779fdb729c7ee81b8e764921becf8ecf1d0 commit r15-8907-gf3d07779fdb729c7ee81b8e764921becf8ecf1d0 Author: Iain Sandoe Date: We

[Bug fortran/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 pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796 --- Comment #13 from Andrew Pinski --- I have a patch to the verifiers to try to catch this earlier. I am going to see if it hits in the testsuite.

[Bug fortran/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 pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118796 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |fortran --- Comment #12 from Andrew Pin

[Bug ipa/112372] [12/13/14/15 Regression] GCC omits function location in DWARF at higher optimisation levels

2025-03-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112372 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > Created attachment 60871 [details] > Patch which I will be submitting for GCC 16 +FAIL: gcc.dg/ipa/ipa-icf-20.c scan-ipa-dump icf "Equal symbols: 1" +FAIL: gcc.

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

2025-03-25 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119224 Vineet Gupta changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[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 #8 from Thomas Schwinge --- Well, indeed. Offloading code generation uses the LTO machinery, including the 'lto1' front end, and thus has 'gcc/common.opt:in_lto_p' set to 'true': ; True if this is the lto front end. This is us

[Bug libstdc++/111351] constexpr std::string objects permitted to escape constant evaluation when SSO

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

[Bug libstdc++/100070] Standard library container iterator-pair constructors should check C++20 iterator concepts

2025-03-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100070 --- Comment #13 from Jonathan Wakely --- vector(InputIterator, InputIterator) is now optimized for C++20 iterators that don't meet the Cpp17ForwardIterator requirements, as of r15-8904-ge200f53a555651

[Bug libstdc++/108487] [12/13/14 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 Known to fail||12.4.0, 13.3.0 Summary|[12

[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 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++/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 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++/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 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 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 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 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 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 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 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 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 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++/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 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 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 #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 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 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 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 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/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 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 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++/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++/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 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 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 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 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 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 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 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/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 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 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 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 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 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 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 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 ---

  1   2   3   >