[Bug c++/121643] [15/16 Regression] Internal compiler error when await_suspend takes default argument

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121643 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/121643] [15/16 Regression] Internal compiler error when await_suspend takes default argument

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

[Bug c++/121643] [15/16 Regression] Internal compiler error when await_suspend takes default argument

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121643 Andrew Pinski changed: What|Removed |Added Known to fail||15.2.0 Summary|Internal comp

[Bug c++/121643] New: Internal compiler error when await_suspend takes default argument

2025-08-22 Thread daniel.kruegler at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121643 Bug ID: 121643 Summary: Internal compiler error when await_suspend takes default argument Product: gcc Version: 15.2.1 Status: UNCONFIRMED Severity: normal

[Bug c++/121636] [13/14/15/16 Regression] incorrect invocation to inherited templated constructor after r7-4255

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 --- Comment #8 from Andrew Pinski --- (In reply to Huiba Li from comment #7) > > ``` > > struct A { > > A(int, int = 0); > > A(int, int, int = 0) = delete; > > }; > > struct B : A { > > using A::A; > > }; > > B b(1); > > >

[Bug c++/121644] New: inh-ctor11a.C xfailed

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121644 Bug ID: 121644 Summary: inh-ctor11a.C xfailed Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: FIXME, testsuite-fail, xfail Severity: normal Priority:

[Bug c++/103524] [meta-bug] modules issue

2025-08-22 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 120499, which changed state. Bug 120499 Summary: import std: indirect use of an exported class using a vector yields undefined symbol https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120499 What|Removed

[Bug c++/120499] import std: indirect use of an exported class using a vector yields undefined symbol

2025-08-22 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120499 Nathaniel Shead changed: What|Removed |Added Target Milestone|--- |16.0 Resolution|---

[Bug c++/120499] import std: indirect use of an exported class using a vector yields undefined symbol

2025-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120499 --- Comment #3 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:5b85364a6dd0bbfd3e26d3346b075a0819be7cd4 commit r16-3353-g5b85364a6dd0bbfd3e26d3346b075a0819be7cd4 Author: Nathaniel Shead Date:

[Bug c++/121636] [13/14/15/16 Regression] incorrect invocation to inherited templated constructor after r7-4255

2025-08-22 Thread huiba.lhb--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 --- Comment #7 from Huiba Li --- > ``` > struct A { > A(int, int = 0); > A(int, int, int = 0) = delete; > }; > struct B : A { > using A::A; > }; > B b(1); > > ``` > > This is rejected by GCC and EDG while accepted by clan

[Bug tree-optimization/118481] missed removing of an if at the gimple level

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118481 --- Comment #3 from Andrew Pinski --- BIT_INSERT_EXPR ; That above should just be VCE<>(iftmp.1_2) since the size of a.0_1 is 8 bits. That should be done anyways as that will remove the dependency on a.0_1 there.

[Bug target/65846] Optimize data access in PIE with copy reloc

2025-08-22 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65846 H.J. Lu changed: What|Removed |Added Resolution|--- |WONTFIX Status|NEW

[Bug c/101446] -Wpedantic causes an error with zero size array

2025-08-22 Thread matteo.nicoli001 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101446 Matteo Nicoli changed: What|Removed |Added CC||matteo.nicoli001 at gmail dot com ---

[Bug target/117818] [13/14/15/16 regression] vec_add incorrectly generates vadduwm for vector char const inputs.

2025-08-22 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117818 --- Comment #12 from Segher Boessenkool --- Hrm, yeah, the ISA says bits 57..63 of VRB. That seems wrong, 121..127 is more logical. Let me test what existing hardware does.

[Bug target/115974] sat_add, etc. vector patterns not done for aarch64 (non-sve)

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115974 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ipa/109112] [[assume(...)]] is not taken into account for structs

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109112 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug target/115975] sat_add, etc. vector patterns not done for aarch64 (sve)

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115975 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug middle-end/118857] __builtin_verbose_trap should be added

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118857 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug target/120811] RISC-V: missed load offset

2025-08-22 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120811 --- Comment #9 from Jeffrey A. Law --- Costing should prevent mvconst_internal from causing problems in this case. >From the compiler's current cost model mvconst_internal+add has the same cost as addi+addi. So there's no reason for combine to

[Bug tree-optimization/79002] Weird c++ assembly code generated for tail call

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79002 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED See Also|

[Bug target/121498] long branches requires ra register but not modeled; causes issues sometimes with shrink wrapping and/or leaf functions

2025-08-22 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121498 --- Comment #11 from Jeffrey A. Law --- I still need to throw it under a debugger, but I suspect it's the whole prologue/epilogue shrink wrapping that's the problem here. The component based shrink wrapping code excludes RA. Assuming that's th

[Bug rtl-optimization/10837] noreturn attribute causes no sibling calling optimization

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10837 --- Comment #28 from Andrew Pinski --- (In reply to Andrew Pinski from comment #27) > (In reply to Josh Haberman from comment #26) > > I have just noticed a very odd edge case though; if multiple functions in > > a file make tail calls to a noret

[Bug ipa/121642] New: ICF loses musttail due to inlining

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121642 Bug ID: 121642 Summary: ICF loses musttail due to inlining Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: diagnostic, tail-call Severity: normal Prio

[Bug rtl-optimization/10837] noreturn attribute causes no sibling calling optimization

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10837 --- Comment #27 from Andrew Pinski --- (In reply to Josh Haberman from comment #26) > I have just noticed a very odd edge case though; if multiple functions in > a file make tail calls to a noreturn function, only the first one defined > in the f

[Bug target/117455] Nested function use gives a ld warning about executable stack, after binutils 2.39

2025-08-22 Thread jsberg at bnl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117455 jsberg at bnl dot gov changed: What|Removed |Added CC||jsberg at bnl dot gov --- Commen

[Bug rtl-optimization/10837] noreturn attribute causes no sibling calling optimization

2025-08-22 Thread jhaberman at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10837 --- Comment #26 from Josh Haberman --- I have just noticed a very odd edge case though; if multiple functions in a file make tail calls to a noreturn function, only the first one defined in the file is a tail call! https://godbolt.org/z/exKE7GKM

[Bug rtl-optimization/10837] noreturn attribute causes no sibling calling optimization

2025-08-22 Thread jhaberman at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10837 --- Comment #25 from Josh Haberman --- (In reply to Lukas Grätz from comment #24) > (In reply to Josh Haberman from comment #23) > > (In reply to Lukas Grätz from comment #22) > > > I think the status should be changed into RESOLVED FIXED now. Af

[Bug c++/109740] -Woverloaded-virtual is too aggressive

2025-08-22 Thread quirkygnu at bladeshadow dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109740 Derek Martin changed: What|Removed |Added CC||quirkygnu at bladeshadow dot org --- Co

[Bug c++/121640] -Woverloaded-virtual is probably bad

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121640 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/121640] -Woverloaded-virtual is probably bad

2025-08-22 Thread quirkygnu at bladeshadow dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121640 --- Comment #2 from Derek Martin --- Making it private doesn't solve the issue, since the derived class can itself still incorrectly call the private included method. Not likely to happen in the oversimple example I gave but perhaps more so in

[Bug tree-optimization/115201] Recursion not optimized for structs arguments

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115201 Andrew Pinski changed: What|Removed |Added Keywords|FIXME |EH --- Comment #11 from Andrew Pinski

[Bug tree-optimization/121595] fabs(a+0.0) -> fabs(a) for non trapping case

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121595 --- Comment #6 from Andrew Pinski --- (In reply to Matteo Nicoli from comment #5) > Created attachment 62175 [details] > A patch to fix 121595 > > I attached a patch for this issue; Hope I haven't violated the coding > standards. I added a coup

[Bug fortran/90795] ICE on compilation when using flas "-fcheck=bounds" in submodules structure

2025-08-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90795 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |WAITING Keywords|

[Bug c++/121640] -Woverloaded-virtual is probably bad

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121640 --- Comment #1 from Andrew Pinski --- I am not 100% sure since you can do: ``` private: // Use the GCC-documented solution using Request::set_options; ``` Which makes the inheirted set_options private.

[Bug rtl-optimization/10837] noreturn attribute causes no sibling calling optimization

2025-08-22 Thread lukas.graetz--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10837 --- Comment #24 from Lukas Grätz --- (In reply to Josh Haberman from comment #23) > (In reply to Lukas Grätz from comment #22) > > I think the status should be changed into RESOLVED FIXED now. After PR > > 119483 and PR 121159 with GCC 16+ and 15

[Bug target/117818] [13/14/15/16 regression] vec_add incorrectly generates vadduwm for vector char const inputs.

2025-08-22 Thread munroesj at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117818 --- Comment #11 from Steven Munroe --- (In reply to Segher Boessenkool from comment #10) > Btw, from power10 on (arch 3.1 and later) vslq (and vsrq) are preferred :-) Noted. PVECLIB will generate these for #if defined(_ARCH_PWR10) https://munro

[Bug fortran/121203] Incorrect result when character functions are passed as arguments to a subroutine

2025-08-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121203 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |15.2 Status|ASSI

[Bug c++/121641] New: Rejects valid constexpr explicitly defaulted constructor which is never a constant expression (P2448R2)

2025-08-22 Thread janschultke at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121641 Bug ID: 121641 Summary: Rejects valid constexpr explicitly defaulted constructor which is never a constant expression (P2448R2) Product: gcc Version: 16.0

[Bug c++/121640] New: -Woverloaded-virtual is probably bad

2025-08-22 Thread quirkygnu at bladeshadow dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121640 Bug ID: 121640 Summary: -Woverloaded-virtual is probably bad Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/121636] [13/14/15/16 Regression] incorrect invocation to inherited templated constructor after r7-4255

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 Andrew Pinski changed: What|Removed |Added Summary|incorrect invocation to |[13/14/15/16 Regression]

[Bug c++/121636] incorrect invocation to inherited templated constructor

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 --- Comment #6 from Andrew Pinski --- https://cplusplus.github.io/CWG/issues/1941.html as far as I can tell is the defect report and reading the end part of https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0136r1.html . This needs a lan

[Bug fortran/121145] Unnecessary runtime error: non-associated procedure pointer passed to optional argument

2025-08-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121145 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/120784] fortran: issue with use-association renames and interface

2025-08-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120784 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |14.4 Status|NEW

[Bug c++/121636] incorrect invocation to inherited templated constructor

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > So the change in GCC 7 was done due to: > https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0136r1.html That is r7-4255 . Here is another example whic

[Bug c++/121636] incorrect invocation to inherited templated constructor

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 --- Comment #4 from Andrew Pinski --- So the change in GCC 7 was done due to: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0136r1.html

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2025-08-22 Thread kishan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 118890, which changed state. Bug 118890 Summary: ubsan bootstrap failure for powerpc64le-unknown-linux-gnu https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118890 What|Removed |Added ---

[Bug rtl-optimization/10837] noreturn attribute causes no sibling calling optimization

2025-08-22 Thread jhaberman at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10837 Josh Haberman changed: What|Removed |Added CC||jhaberman at gmail dot com --- Comment #

[Bug c++/121636] incorrect invocation to inherited templated constructor

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 --- Comment #3 from Andrew Pinski --- So here is a summary of the compilers: MSVC, clang: calls C1 for derived GCC, EDG: calls C2 for derived I have not looked to see if there is a defect report to C++ yet about this. Especially when half of t

[Bug c++/121636] incorrect invocation to inherited templated constructor

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 --- Comment #2 from Andrew Pinski --- I am not saying this is correct but GCC is acting like the following code: ``` typedef double T; template void f(const T(&arr)[N], int asdf = 468) { __builtin_printf("f()\n"); } void f(const T* arr, int n

[Bug fortran/120784] fortran: issue with use-association renames and interface

2025-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120784 --- Comment #14 from GCC Commits --- The releases/gcc-14 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:97ad2824f4faffd5da6e90e91f3dbfcc4bb3cc25 commit r14-11975-g97ad2824f4faffd5da6e90e91f3dbfcc4bb3cc25 Author: Harald Anlauf

[Bug tree-optimization/121595] fabs(a+0.0) -> fabs(a) for non trapping case

2025-08-22 Thread matteo.nicoli001 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121595 --- Comment #5 from Matteo Nicoli --- Created attachment 62175 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62175&action=edit A patch to fix 121595 I attached a patch for this issue; Hope I haven't violated the coding standards. I added

[Bug fortran/121145] Unnecessary runtime error: non-associated procedure pointer passed to optional argument

2025-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121145 --- Comment #5 from GCC Commits --- The releases/gcc-14 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:087fe1daf1024c3d481b708c40cf47cc26b06a3a commit r14-11976-g087fe1daf1024c3d481b708c40cf47cc26b06a3a Author: Harald Anlauf

[Bug fortran/120784] fortran: issue with use-association renames and interface

2025-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120784 --- Comment #13 from GCC Commits --- The releases/gcc-14 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:6fc73d887341122dce5df56b0eaac1244e57e766 commit r14-11974-g6fc73d887341122dce5df56b0eaac1244e57e766 Author: Harald Anlauf

[Bug target/121635] [16 Regression] ICE on nodejs-22.18.0: ICE in ix86_emit_tls_call, at config/i386/i386-features.cc:3805

2025-08-22 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121635 --- Comment #4 from Sergei Trofimovich --- The change fixed nodejs-22.18.0 build for me as well. Thank you!

[Bug target/118890] ubsan bootstrap failure for powerpc64le-unknown-linux-gnu

2025-08-22 Thread kishan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118890 Kishan Parmar changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/108001] unamed struct field extension is not documented for C++

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108001 --- Comment #2 from Andrew Pinski --- Funny how I was just going to file this bug again today due to PR 121637. So what is not documented is the rejecting of fields that have a constructor or deconstructor. unamed structs that are fields can't

[Bug target/118890] ubsan bootstrap failure for powerpc64le-unknown-linux-gnu

2025-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118890 --- Comment #8 from GCC Commits --- The master branch has been updated by kishan parmar : https://gcc.gnu.org/g:9d63110c4334335a920424c301691dae9ecf398f commit r16-3351-g9d63110c4334335a920424c301691dae9ecf398f Author: Kishan Parmar Date: S

[Bug c++/106666] Anonymous struct incorrectly allows types with constructors if placed in a known sized array

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10 Andrew Pinski changed: What|Removed |Added Resolution|DUPLICATE |--- Status|RESOLVED

[Bug tree-optimization/121638] [16 Regression] wrong code at -O3 with "-fno-tree-vrp -fno-tree-scev-cprop" on x86_64-linux-gnu

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121638 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Version|unknown

[Bug c++/114986] Seemingly incorrect "ignoring packed attribute" warning

2025-08-22 Thread rs2740 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114986 --- Comment #2 from TC --- It seems like what it does is that it ignores the attribute's effect on the specific member, but still applies it on the other members. Consider: struct Short { short x = {}; }; struct __attribute__((packed)) Y {

[Bug tree-optimization/121638] [16 Regression] wrong code at -O3 with "-fno-tree-vrp -fno-tree-scev-cprop" on x86_64-linux-gnu

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121638 --- Comment #1 from Andrew Pinski --- Created attachment 62174 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62174&action=edit Little more reduced

[Bug c++/121639] New: [OpenMP] ICE when trying to map a member variable of reference type

2025-08-22 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121639 Bug ID: 121639 Summary: [OpenMP] ICE when trying to map a member variable of reference type Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: ice-on-val

[Bug tree-optimization/121638] [16 Regression] wrong code at -O3 with "-fno-tree-vrp -fno-tree-scev-cprop" on x86_64-linux-gnu

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121638 Andrew Pinski changed: What|Removed |Added Target||aarch64 x86_64 Summary|wrong

[Bug libstdc++/121598] Missing precondition checks in copy/copy_backward/move/move_backward algos

2025-08-22 Thread rs2740 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121598 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #1 from TC --

[Bug target/120553] Improve code to select between -1 and various values

2025-08-22 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 Jeffrey A. Law changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/120553] Improve code to select between -1 and various values

2025-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120553 --- Comment #10 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:ebbeaf490c56e04d2e9be25caf9522ef5fba6c72 commit r16-3350-gebbeaf490c56e04d2e9be25caf9522ef5fba6c72 Author: Jeff Law Date: Fri Aug 22

[Bug target/117818] [13/14/15/16 regression] vec_add incorrectly generates vadduwm for vector char const inputs.

2025-08-22 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117818 --- Comment #10 from Segher Boessenkool --- Btw, from power10 on (arch 3.1 and later) vslq (and vsrq) are preferred :-)

[Bug target/121633] missed optimization for carry on ARM

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121633 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/121637] Anonymous structs with GCC are broken

2025-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121637 Andrew Pinski changed: What|Removed |Added Keywords||accepts-invalid --- Comment #1 from And

[Bug target/120811] RISC-V: missed load offset

2025-08-22 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120811 --- Comment #8 from Vineet Gupta --- (In reply to Jeffrey A. Law from comment #5) > So a bit of clarification here from the patchwork meeting today. > > Shreya's work isn't meant to directly fix this particular issue, though it > is very closel

[Bug fortran/121627] ICE: Segmentation fault upon using ISO_FORTRAN_ENV KIND constant

2025-08-22 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121627 --- Comment #6 from kargls at comcast dot net --- (In reply to Dustin Warkotsch from comment #5) > > Huh, I didn't notice that. I just took the name from the example program in > the "selected_real_kind" GCC doc ( > https://gcc.gnu.org/onlinedoc

[Bug c++/121614] c++ modules, gcc fails to define 'vtable' and create 'typeinfo' symbol

2025-08-22 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121614 --- Comment #6 from Nathaniel Shead --- (In reply to m...@duck.com from comment #5) > I would try to make a feature request for gcc to add an option to check > whether CMI is included in the archive with object (also not yet implemented > "modul

[Bug c++/121614] c++ modules, gcc fails to define 'vtable' and create 'typeinfo' symbol

2025-08-22 Thread mtxn at duck dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121614 --- Comment #5 from mtxn at duck dot com --- (In reply to Nathaniel Shead from comment #4) > Hi, thanks for the report! > > The issue looks to be with the Makefile, GCC is behaving correctly here. A > module TU also should produce an object fi

[Bug tree-optimization/121638] New: wrong code at -O3 with "-fno-tree-vrp -fno-tree-scev-cprop" on x86_64-linux-gnu

2025-08-22 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121638 Bug ID: 121638 Summary: wrong code at -O3 with "-fno-tree-vrp -fno-tree-scev-cprop" on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Sever

[Bug c++/121637] New: Anonymous structs with GCC are broken

2025-08-22 Thread nikolasklauser at berlin dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121637 Bug ID: 121637 Summary: Anonymous structs with GCC are broken Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/121635] [16 Regression] ICE on nodejs-22.18.0: ICE in ix86_emit_tls_call, at config/i386/i386-features.cc:3805

2025-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121635 --- Comment #2 from GCC Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:e12208722dabdad25cc13bb580991b5bf511a104 commit r16-3345-ge12208722dabdad25cc13bb580991b5bf511a104 Author: H.J. Lu Date: Fri Aug 22 05

[Bug c++/121636] incorrect invocation to inherited templated constructor

2025-08-22 Thread huiba.lhb--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 --- Comment #1 from Huiba Li --- ```diff - https://wandbox.org/permlink/d3W0Mr3WvO0SCDZG + https://wandbox.org/permlink/9rKAQBU6d1ga5qaZ -derived z(x); // should be "C2: 0x?, 3, 0", but it is "C2: 0x?, 468, 0" +

[Bug c++/121636] New: inherited templated constructor invocation wrong

2025-08-22 Thread huiba.lhb--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121636 Bug ID: 121636 Summary: inherited templated constructor invocation wrong Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/121635] [16 Regression] ICE on nodejs-22.18.0: ICE in ix86_emit_tls_call, at config/i386/i386-features.cc:3805

2025-08-22 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121635 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/121634] [15/16 Regression] internal compiler error: in new_binary_operation, at vector-builder.h:300 compiling highway gtest on LoongArch with -O2 -mlasx

2025-08-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121634 --- Comment #5 from Xi Ruoyao --- It turns out to be a stupid pasto: diff --git a/gcc/config/loongarch/simd.md b/gcc/config/loongarch/simd.md index dd17cd13fc5..4156b269f9a 100644 --- a/gcc/config/loongarch/simd.md +++ b/gcc/config/loongarch/si

[Bug target/121635] [16 Regression] ICE on nodejs-22.18.0: ICE in ix86_emit_tls_call, at config/i386/i386-features.cc:3805

2025-08-22 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121635 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/121604] [15/16 Regression] Wrong folding of svbrkb intrinsic since r15-5957-g5289540ed58e42

2025-08-22 Thread jschmitz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121604 --- Comment #2 from Jennifer Schmitz --- Thanks for catching this. Both svbrka and svbrkb produce wrong code with _m predication. Same for svpmov_lane with _m and a pfalse predicate. The problem for svbrka/b is that they get folded by the code i

[Bug target/121634] [15/16 Regression] internal compiler error: in new_binary_operation, at vector-builder.h:300 compiling highway gtest on LoongArch with -O2 -mlasx

2025-08-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121634 Xi Ruoyao changed: What|Removed |Added Priority|P3 |P2

[Bug target/121634] [14/15 Regression] internal compiler error: in new_binary_operation, at vector-builder.h:300 compiling highway gtest on LoongArch with -O2 -mlasx

2025-08-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121634 Xi Ruoyao changed: What|Removed |Added Ever confirmed|0 |1 Target Milestone|---

[Bug target/121634] [14/15 Regression] internal compiler error: in new_binary_operation, at vector-builder.h:300 compiling highway gtest on LoongArch with -O2 -mlasx

2025-08-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121634 --- Comment #4 from Xi Ruoyao --- (insn 10 9 11 2 (set (reg:V4SI 82 [ _6 ]) (plus:V4SI (mult:V4SI (sign_extend:V4SI (vec_select:V4HI (reg:V8HI 88) (parallel [

[Bug target/121634] [14/15 Regression] internal compiler error: in new_binary_operation, at vector-builder.h:300 compiling highway gtest on LoongArch with -O2 -mlasx

2025-08-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121634 Xi Ruoyao changed: What|Removed |Added Known to fail||15.2.0, 16.0 Summary|internal co

[Bug target/121634] internal compiler error: in new_binary_operation, at vector-builder.h:300 compiling highway gtest on LoongArch with -O2 -mlasx

2025-08-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121634 --- Comment #2 from Xi Ruoyao --- typedef short v8i16 __attribute__((vector_size(16))); typedef long __m128i __attribute__((__vector_size__(16))); __m128i __lsx_vmaddwod_w_h__1, WidenMulPairwiseAdd___trans_tmp_2; template using CappedTag = int;

[Bug fortran/121627] ICE: Segmentation fault upon using ISO_FORTRAN_ENV KIND constant

2025-08-22 Thread dustin-warkotsch at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121627 --- Comment #5 from Dustin Warkotsch --- (In reply to kargls from comment #2) > (In reply to kargls from comment #1) > > This leads to the same ICE without the overhead of a Fortran IO statement. > > > > program real_kinds > > use iso_fortran

[Bug target/121634] internal compiler error: in new_binary_operation, at vector-builder.h:300 compiling highway gtest on LoongArch with -O2 -mlasx

2025-08-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121634 Richard Biener changed: What|Removed |Added Keywords||needs-bisection --- Comment #1 from Ri

[Bug target/121635] [16 Regression] ICE on nodejs-22.18.0: ICE in ix86_emit_tls_call, at config/i386/i386-features.cc:3805

2025-08-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121635 Richard Biener changed: What|Removed |Added Keywords||ice-on-valid-code Target Milestone|-

[Bug middle-end/118748] Segmentation fault in qt apps in aarch64

2025-08-22 Thread user3mila at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118748 --- Comment #15 from user3mila at disroot dot org --- I tried this and the problem persists: export CFLAGS="-O0 -fstack-clash-protection -Wformat -Werror=format-security -fstack-reuse=none" export CXXFLAGS="-O0 -fstack-clash-protection -Wformat

[Bug target/121635] New: [16 Regression] ICE on nodejs-22.18.0: ICE in ix86_emit_tls_call, at config/i386/i386-features.cc:3805

2025-08-22 Thread slyfox at gcc dot gnu.org via Gcc-bugs
-disable-bootstrap --disable-lto --disable-libsanitizer --disable-libstdcxx-pch --enable-languages=c,c++ --disable-libgomp --disable-libquadmath --disable-libvtv CFLAGS='-O1 -g0' CXXFLAGS='-O1 -g0' LDFLAGS='-O1 -g0' Thread model: posix Supported LTO compression algorithms: zlib gcc version 16.0.0 20250822 (experimental) (GCC)

[Bug target/121634] New: internal compiler error: in new_binary_operation, at vector-builder.h:300 compiling highway gtest on LoongArch with -O2 -mlasx

2025-08-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121634 Bug ID: 121634 Summary: internal compiler error: in new_binary_operation, at vector-builder.h:300 compiling highway gtest on LoongArch with -O2 -mlasx Product: gcc

[Bug target/121633] New: missed optimization for carry on ARM

2025-08-22 Thread Simon.Richter at hogyros dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121633 Bug ID: 121633 Summary: missed optimization for carry on ARM Product: gcc Version: 15.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug c++/83161] Feature request: add a builtin for printing structs and classes

2025-08-22 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83161 --- Comment #8 from uecker at gcc dot gnu.org --- And one very unfortunate choice in the design of the clang feature is that the output is not legal C.

[Bug c++/83161] Feature request: add a builtin for printing structs and classes

2025-08-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83161 --- Comment #7 from Richard Biener --- C++ reflection should be able to implement this in the library? Of course this is useful for C as well, but as clang defines it is necessarily to be handled from the frontend(s).