[Bug libstdc++/120029] Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p

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

[Bug c/120009] RFE: idea: void (dummy) objects (really...)

2025-04-30 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120009 --- Comment #6 from H. Peter Anvin --- I would say it would either take up 1 bit or be an error. Bitfields actually was one of the biggest design mistakes in C: the width should always have been part of the type (like intX_t or now, finally, _Bi

[Bug c++/117783] [C++26] P1061R10 - Structured bindings can introduce a pack

2025-04-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117783 Jakub Jelinek changed: What|Removed |Added Attachment #61241|0 |1 is obsolete|

[Bug c++/119981] [14/15/16 Regression] rejects lambda used a template argument with inner template as a template param since r15-123

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119981 --- Comment #3 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:05ea8baf6ff96c77a9a2467d5c45b1ed575fca92 commit r16-309-g05ea8baf6ff96c77a9a2467d5c45b1ed575fca92 Author: Patrick Palka Date: We

[Bug c++/119378] [12/13 Regression] Nested template class friend of template class produces "internal compiler error: unexpected expression ‘T’ of kind template_parm_index"

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119378 --- Comment #6 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:05ea8baf6ff96c77a9a2467d5c45b1ed575fca92 commit r16-309-g05ea8baf6ff96c77a9a2467d5c45b1ed575fca92 Author: Patrick Palka Date: We

[Bug c++/119981] [14/15/16 Regression] rejects lambda used a template argument with inner template as a template param since r15-123

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119981 --- Comment #4 from GCC Commits --- The releases/gcc-15 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:670250c904dd5c8a1e0a0d241c42d5657400cdc8 commit r15-9605-g670250c904dd5c8a1e0a0d241c42d5657400cdc8 Author: Patrick Palka

[Bug c++/119378] [12/13 Regression] Nested template class friend of template class produces "internal compiler error: unexpected expression ‘T’ of kind template_parm_index"

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119378 --- Comment #7 from GCC Commits --- The releases/gcc-15 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:670250c904dd5c8a1e0a0d241c42d5657400cdc8 commit r15-9605-g670250c904dd5c8a1e0a0d241c42d5657400cdc8 Author: Patrick Palka

[Bug libstdc++/120029] Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p

2025-04-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029 --- Comment #3 from Jonathan Wakely --- The simplest fix is just: --- a/libstdc++-v3/src/c++17/fs_path.cc +++ b/libstdc++-v3/src/c++17/fs_path.cc @@ -880,6 +880,9 @@ path::operator+=(const path& p) return *this; } + if (&p == this

[Bug libstdc++/120029] Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p

2025-04-30 Thread yhx12243 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029 --- Comment #4 from Haoxiang Yu --- (In reply to Jonathan Wakely from comment #3) > The simplest fix is just: > > --- a/libstdc++-v3/src/c++17/fs_path.cc > +++ b/libstdc++-v3/src/c++17/fs_path.cc > @@ -880,6 +880,9 @@ path::operator+=(const pat

[Bug c++/120037] New: Structured binding ICE

2025-04-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120037 Bug ID: 120037 Summary: Structured binding ICE Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: u

[Bug target/119989] [AVR] Incorrect code generation with __memx pointers when optimization is enabled (-O1 and above) on AVR (ATmega328P)

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119989 --- Comment #4 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:4dc40eddbe69566869f7aafb78c31c4850b8aeb7 commit r16-301-g4dc40eddbe69566869f7aafb78c31c4850b8aeb7 Author: Georg-Johann Lay Date

[Bug target/119989] [AVR] Incorrect code generation with __memx pointers when optimization is enabled (-O1 and above) on AVR (ATmega328P)

2025-04-30 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119989 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |FIXED Target|Avr

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread kostikbel at ukr dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #15 from Konstantin Belousov --- (In reply to Eric Botcazou from comment #14) > Created attachment 61250 [details] > Tentative fix > > Please give it a try on FreeBSD. I can confirm that the checkout of master at 4a02f3a1f96e9b339a

[Bug target/120019] [16 regression] PR 111657 change broke Solaris/x86 bootstrap

2025-04-30 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120019 --- Comment #3 from Uroš Bizjak --- (In reply to Uroš Bizjak from comment #2) > Please detect support during configure time and create an operand modifier > that will output "gs " or "fs " for non-default address spaces. Then output > e.g. "%^%

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread kostikbel at ukr dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #16 from Konstantin Belousov --- (In reply to Konstantin Belousov from comment #15) > (In reply to Eric Botcazou from comment #14) > > Created attachment 61250 [details] > > Tentative fix > > > > Please give it a try on FreeBSD. >

[Bug tree-optimization/120003] [12/13/14/15/16 Regression] missed optimization around a loop with a checker

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120003 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org

[Bug target/120011] [15/16 Regression] Impossible asm constraints in 32 bit libgcc when compiling with -march=x86-64-v4 -Os since r15-9176-g564e4e08190229

2025-04-30 Thread stefan.kneifel at bluewin dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120011 --- Comment #13 from Stefan Kneifel --- Correct, -R'ing this patch against 15.1.1 sources reverses the regression.

[Bug ipa/120006] [15/16 Regression] wrong code with -O2 -fipa-pta

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120006 --- Comment #13 from Richard Biener --- Created attachment 61252 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61252&action=edit patch I'm testing this, it fixes the small.c testcase.

[Bug target/120034] Fails to recognize bzhi consistently

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120034 --- Comment #2 from Richard Biener --- We get (-O2 -mbmi2): bzhi_emulation1: .LFB1: .cfi_startproc movq$-1, %rax shlx%rsi, %rax, %rax notl%eax andl%edi, %eax ret that has single u

[Bug target/120034] Fails to recognize bzhi consistently

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120034 --- Comment #3 from Richard Biener --- As expected it works for uint32_t bzhi_emulation1(uint32_t value, uint32_t index) { return value & ((1 << index) - 1); } but we can generate DImode bzhi just fine for this case?

[Bug tree-optimization/120035] New: Loops are not optimized when "unsigned i" is used

2025-04-30 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120035 Bug ID: 120035 Summary: Loops are not optimized when "unsigned i" is used Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug tree-optimization/120035] Loops are not optimized when "unsigned i" is used

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120035 --- Comment #2 from Richard Biener --- It works with _Bool f(){ _Bool retval = 0; for(unsigned int i=0; i< (1u << 30); ++i) retval = retval || g(i); return retval; } it also works when g() takes an [unsigned] long. So a bi

[Bug c++/119305] [14 Regression] ICE in add_to_same_comdat_group with constexpr virtual and constexpr instance

2025-04-30 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119305 --- Comment #4 from Jason Merrill --- (In reply to Patrick Palka from comment #3) > Jakub/Jason, shall we backport r15-521 to the 14 branch in order to fix this > PR for 14.3? That would make sense to me, but let's see what Jakub thinks.

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

2025-04-30 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 116671, which changed state. Bug 116671 Summary: Compiling iostream and string as modules fails if string is compiled first https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116671 What|Removed

[Bug c++/115206] ICE: segfault in code involving C++ modules

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115206 Nathaniel Shead changed: What|Removed |Added CC||nshead at gcc dot gnu.org Ever co

[Bug c/115027] Missing warning: unused struct's with self-referential initialisers

2025-04-30 Thread dave at treblig dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115027 --- Comment #3 from Dr. David Alan Gilbert --- (For my own keeping track, Jakub replied to that patch with a suggestion: https://inbox.sourceware.org/gcc-patches/Zwlg8VYJXQmEC65C@tucnak/ )

[Bug c++/116671] Compiling iostream and string as modules fails if string is compiled first

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116671 Nathaniel Shead changed: What|Removed |Added Target Milestone|--- |15.0 CC|

[Bug c++/115692] C++ module ice

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115692 Nathaniel Shead changed: What|Removed |Added CC||nshead at gcc dot gnu.org --- Comment

[Bug c++/119305] [14 Regression] ICE in add_to_same_comdat_group with constexpr virtual and constexpr instance

2025-04-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119305 --- Comment #5 from Jakub Jelinek --- r15-521 was meant for 15 only: On Thu, Apr 25, 2024 at 11:30:48AM -0400, Jason Merrill wrote: > Hmm, maybe maybe_clone_body shouldn't clear DECL_SAVED_TREE for aliases, but >

[Bug target/119971] [15/16 Regression] RISC-V: Wrong code with bitmanip extension

2025-04-30 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119971 --- Comment #2 from Jeffrey A. Law --- The pattern Andrew quoted I think is OK. It "eats" the & 31 because that's implicitly done by the hardware for the "w" forms of the shift instructions. The real problem is when we use that shift count in

[Bug target/120036] New: [16 Regression] ICE on highway-1.2.0: during RTL pass: rrvl: in gen_rtx_SUBREG, at emit-rtl.cc:1032

2025-04-30 Thread slyfox at gcc dot gnu.org via Gcc-bugs
om gcc/specs COLLECT_GCC=gcc/xg++ COLLECT_LTO_WRAPPER=gcc/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /home/slyfox/dev/git/gcc/configure --disable-multilib --disable-bootstrap --disable-lto --disable-libsanitizer --disable-libstdcxx-pch --enable-languages=c,c++ --disable-libgomp --disable

[Bug c++/117035] ICE in unify, at cp/pt.cc:25410, when specifying lambda expression template argument in partial specialization

2025-04-30 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117035 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment #

[Bug ipa/120006] [15 Regression] wrong code with -O2 -fipa-pta

2025-04-30 Thread anhollander516 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120006 Avraham Hollander changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/120023] When using c++ modules, put deduction guide in a separate module unit file, the deduction will be ignored

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120023 Nathaniel Shead changed: What|Removed |Added Last reconfirmed||2025-04-30 Ever confirmed|0

[Bug tree-optimization/120035] Loops are not optimized when "unsigned i" is used

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120035 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW See Also|

[Bug ipa/68331] [meta-bug] fipa-pta issues

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68331 Bug 68331 depends on bug 120006, which changed state. Bug 120006 Summary: [15 Regression] wrong code with -O2 -fipa-pta https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120006 What|Removed |Added ---

[Bug c++/120016] SIGSEGV ICE with modules related to instantiation of templates across partition units (case 3)

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120016 Nathaniel Shead changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/120013] SIGSEGV ICE with modules related to instantiation of templates across partition units

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120013 --- Comment #9 from Nathaniel Shead --- *** Bug 120016 has been marked as a duplicate of this bug. ***

[Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used

2025-04-30 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #32 from LIU Hao --- Created attachment 61251 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61251&action=edit another non-working patch Unfortunately, decreasing the incoming stack alignment to 4 but also keeping preferred st

[Bug target/120011] [15/16 Regression] Impossible asm constraints in 32 bit libgcc when compiling with -march=x86-64-v4 -Os since r15-9176-g564e4e08190229

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120011 Richard Biener changed: What|Removed |Added Keywords||build Target|i?86

[Bug c++/120012] [12/13/14/15/16 Regression] P1008R1 causes tail padding reuse in C++20 mode

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

[Bug tree-optimization/120020] New: [Optimization opportunity] Optimize repeated inline assembly operations when semantically equivalent

2025-04-30 Thread a1343922569 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120020 Bug ID: 120020 Summary: [Optimization opportunity] Optimize repeated inline assembly operations when semantically equivalent Product: gcc Version: 16.0 Status: UNCONFIRM

[Bug ipa/120006] [15/16 Regression] wrong code with -O2 -fipa-pta

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120006 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|unassigned

[Bug tree-optimization/120020] [Optimization opportunity] Optimize repeated inline assembly operations when semantically equivalent

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120020 --- Comment #4 from Andrew Pinski --- Oh the inline-asm in myDivMod2 also is missing an early clobber for b too.

[Bug tree-optimization/120020] [Optimization opportunity] Optimize repeated inline assembly operations when semantically equivalent

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120020 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > Oh the inline-asm in myDivMod2 also is missing an early clobber for b too. s/b/dividendRemainder/.

[Bug tree-optimization/120020] [Optimization opportunity] Optimize repeated inline assembly operations when semantically equivalent

2025-04-30 Thread a1343922569 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120020 --- Comment #6 from Jin Haobo --- Sorry, the code in my reproduction is wrong. I will re-show the C++ code. This code is right, and Clang generate the right optimal assembly indeed.

[Bug tree-optimization/120022] [Optimization opportunity] Related with Bug 119917 and 120020

2025-04-30 Thread a1343922569 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120022 Jin Haobo changed: What|Removed |Added Resolution|WONTFIX |--- Status|RESOLVED

[Bug tree-optimization/120022] [Optimization opportunity] Related with Bug 119917 and 120020

2025-04-30 Thread a1343922569 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120022 --- Comment #5 from Jin Haobo --- Bug 119917 is another Bug which is submit by myself! But this issue has still not been resolved so far, and with no more reply.

[Bug tree-optimization/120022] [Optimization opportunity] Related with Bug 119917 and 120020

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

[Bug target/120019] [16 regression] PR 111657 change broke Solaris/x86 bootstrap

2025-04-30 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120019 --- Comment #2 from Uroš Bizjak --- (In reply to Rainer Orth from comment #0) > Between 20250428 and 20250429, Solaris/x86 bootstrap with the native as got > broken compiling libgcc: > > /var/gcc/regression/master/11.4-gcc/build/./gcc/xgcc > -B

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #19 from GCC Commits --- The releases/gcc-14 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:51d76593947a2dba90f52b394fdf70602fa8ff6a commit r14-11704-g51d76593947a2dba90f52b394fdf70602fa8ff6a Author: Eric Botcazou

[Bug middle-end/120021] Offloading vs. C++ 'std::initializer_list'

2025-04-30 Thread waffl3x at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120021 Alex changed: What|Removed |Added Summary|Offloading vs. C++ |Offloading vs. C++ |'std::vala

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #20 from GCC Commits --- The releases/gcc-13 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:2317297a745a5b73015074621df9290569fb67d3 commit r13-9626-g2317297a745a5b73015074621df9290569fb67d3 Author: Eric Botcazou

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #17 from GCC Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:85e4f21f9e90fc70b8c7c75ec8e4d0766008ac6e commit r16-302-g85e4f21f9e90fc70b8c7c75ec8e4d0766008ac6e Author: Eric Botcazou Date: W

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #18 from GCC Commits --- The releases/gcc-15 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:01ebce59db2039c6d63b565295095fd6e3b02d57 commit r15-9604-g01ebce59db2039c6d63b565295095fd6e3b02d57 Author: Eric Botcazou

[Bug c++/119983] Member function in unnamed type causes internal compiler error in module.

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119983 --- Comment #5 from Nathaniel Shead --- (In reply to gap mman from comment #4) > (In reply to Nathaniel Shead from comment #2) > > Thanks for the report! As Andrew noted, the ICE is fixed for 14.3 by > > r14-10825-g01d3a974fe3474c37cd52b595c29d

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #21 from GCC Commits --- The releases/gcc-12 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:d30dfa8586b5d12e341a7965ef7970a2b8402519 commit r12-11078-gd30dfa8586b5d12e341a7965ef7970a2b8402519 Author: Eric Botcazou

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 Eric Botcazou changed: What|Removed |Added Target Milestone|14.3|12.5 Status|NEW

[Bug c++/120025] rfe: split assignable temporaries from -fpermissive

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120025 --- Comment #4 from Andrew Pinski --- >I've got on clang forum I tried looking for that but I don't see it on discourse.llvm.org at all nor on as an issue at https://github.com/llvm/llvm-project/issues .

[Bug libstdc++/113327] std::sleep_for(std::chrono::hours::max()) returns immediately

2025-04-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113327 --- Comment #4 from Jonathan Wakely --- I have a patch that fixes the problem for this_thread::sleep_for, timed_mutex::try_until, condition_variable::wait_until and a few other places, but it's not sufficient. There are other overflows in e.g.

[Bug libstdc++/113327] std::sleep_for(std::chrono::hours::max()) returns immediately

2025-04-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113327 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > There are other overflows in e.g. sleep_until: > > time_point end_of_time(minutes::max()); > std::this_thread::sleep_until(end_of_time); > > This f

[Bug target/120036] [16 Regression] ICE on highway-1.2.0: during RTL pass: rrvl: in gen_rtx_SUBREG, at emit-rtl.cc:1032

2025-04-30 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120036 Sergei Trofimovich changed: What|Removed |Added Version|15.0|16.0 CC|

[Bug c++/119305] [14 Regression] ICE in add_to_same_comdat_group with constexpr virtual and constexpr instance

2025-04-30 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119305 Patrick Palka changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #3

[Bug ipa/120006] [15 Regression] wrong code with -O2 -fipa-pta

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120006 Richard Biener changed: What|Removed |Added Status|RESOLVED|ASSIGNED Resolution|FIXED

[Bug ipa/68331] [meta-bug] fipa-pta issues

2025-04-30 Thread anhollander516 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68331 Bug 68331 depends on bug 120006, which changed state. Bug 120006 Summary: [15 Regression] wrong code with -O2 -fipa-pta https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120006 What|Removed |Added ---

[Bug c++/120013] SIGSEGV ICE with modules related to instantiation of templates across partition units

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120013 Nathaniel Shead changed: What|Removed |Added CC||nshead at gcc dot gnu.org

[Bug c++/120014] SIGSEGV ICE with modules related to instantiation of templates across partition units (case 2)

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120014 Nathaniel Shead changed: What|Removed |Added CC||nshead at gcc dot gnu.org

[Bug c++/120013] SIGSEGV ICE with modules related to instantiation of templates across partition units

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120013 --- Comment #8 from Nathaniel Shead --- *** Bug 120014 has been marked as a duplicate of this bug. ***

[Bug c++/98641] Feature request: implement pointer alignment builtins

2025-04-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98641 Sam James changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

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

2025-04-30 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 115706, which changed state. Bug 115706 Summary: Compiling headers as header units fails depending on order. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115706 What|Removed |Added ---

[Bug c++/115706] Compiling headers as header units fails depending on order.

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115706 --- Comment #9 from Nathaniel Shead --- Created attachment 61256 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61256&action=edit test_module_headers.py Attached is a script I've used for testing random orders of building standard library

[Bug c++/115706] Compiling headers as header units fails depending on order.

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

[Bug target/120036] [16 Regression] ICE on highway-1.2.0: during RTL pass: rrvl: in gen_rtx_SUBREG, at emit-rtl.cc:1032 since r16-271-gd1cada7481420a

2025-04-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120036 Sam James changed: What|Removed |Added Summary|[16 Regression] ICE on |[16 Regression] ICE on |h

[Bug tree-optimization/120038] New: Missed combining shr and shrx in collatz_f1()

2025-04-30 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120038 Bug ID: 120038 Summary: Missed combining shr and shrx in collatz_f1() Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tr

[Bug c++/120037] Structured binding ICE

2025-04-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120037 --- Comment #1 from Jakub Jelinek --- Slightly tweaked with the specializations outside of namespace std (though this one doesn't compile in 7.x). namespace std { template struct tuple_size; template struct tuple_element; } struct T { int

[Bug libstdc++/120029] Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p

2025-04-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029 --- Comment #5 from Jonathan Wakely --- No, I don't think we need to care about the performance of this case. It's not a realistic operation that is commonly needed for paths.

[Bug c++/120037] Structured binding ICE

2025-04-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120037 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org Keyw

[Bug c++/120039] New: [15/16 Regression] Structured binding in condition ICE since r15-1793

2025-04-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120039 Bug ID: 120039 Summary: [15/16 Regression] Structured binding in condition ICE since r15-1793 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug c++/120039] [15/16 Regression] Structured binding in condition ICE since r15-1793

2025-04-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120039 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |15.2

[Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used

2025-04-30 Thread gabrielopcode at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #33 from Gabriel Ivăncescu --- (In reply to LIU Hao from comment #31) > (In reply to Gabriel Ivăncescu from comment #30) > > Why would it not be safe? For MinGW specifically, what's not safe about it? > > The entire Windows stack ass

[Bug driver/91406] gcc -Q -v --help=optimizers lies about what flags are enabled

2025-04-30 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91406 Manuel López-Ibáñez changed: What|Removed |Added Summary|gcc -Q -v lies about what |gcc -Q -v --help=optimizers

[Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used

2025-04-30 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #34 from LIU Hao --- (In reply to Gabriel Ivăncescu from comment #33) > Shouldn't using SSE automatically re-align it to 16, seeing as the alignment > requirement is stricter? I don't see how __force_align_arg_pointer__ is > useful a

[Bug driver/119823] -Q --help=optimizers output is misleading for -O0 + inconsistent docs in the manual

2025-04-30 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119823 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comme

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #12 from GCC Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:4a02f3a1f96e9b339a203fc4647a76413a51440e commit r16-295-g4a02f3a1f96e9b339a203fc4647a76413a51440e Author: Eric Botcazou Date: W

[Bug target/120019] New: [16 regression] PR 111657 change broke Solaris/x86 bootstrap

2025-04-30 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120019 Bug ID: 120019 Summary: [16 regression] PR 111657 change broke Solaris/x86 bootstrap Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug rust/120018] internal compiler error: in redirect_to_unreachable, at ipa-fnsummary.cc:258 for 32-bits

2025-04-30 Thread dkm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120018 --- Comment #3 from Marc Poulhiès --- Ok, thanks Andrew, we'll take care of fixing this.

[Bug rtl-optimization/120004] __builtin_unreachable/noreturn should not fall through to another function

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120004 --- Comment #5 from Richard Biener --- unreachable() is in some cases added to make the CFG valid - in the past we had a return in such places but unreachable seemed to be a better fit. For asm() we'd need "[[noreturn]]" (or rather [[return]]?)

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #13 from GCC Commits --- The releases/gcc-15 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:17695fe9ca15046f32833c345ab2406b7c080416 commit r15-9601-g17695fe9ca15046f32833c345ab2406b7c080416 Author: Eric Botcazou

[Bug rtl-optimization/120004] __builtin_unreachable/noreturn should not fall through to another function

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120004 --- Comment #6 from Andrew Pinski --- (In reply to Richard Biener from comment #5) > unreachable() is in some cases added to make the CFG valid - in the past we > had a return in such places but unreachable seemed to be a better fit. > > For as

[Bug target/119989] [AVR] Incorrect code generation with __memx pointers when optimization is enabled (-O1 and above) on AVR (ATmega328P)

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119989 --- Comment #2 from GCC Commits --- The releases/gcc-12 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:21aa0abcf1aba3a5f410b01628e8fc7f55ee8786 commit r12-11077-g21aa0abcf1aba3a5f410b01628e8fc7f55ee8786 Author: Georg-Johan

[Bug libstdc++/120029] Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p

2025-04-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029 --- Comment #6 from Jonathan Wakely --- Actually it looks like we can make it optimally efficient without any difficulty: --- a/libstdc++-v3/src/c++17/fs_path.cc +++ b/libstdc++-v3/src/c++17/fs_path.cc @@ -914,6 +914,10 @@ path::operator+=(con

[Bug c++/119378] [12/13 Regression] Nested template class friend of template class produces "internal compiler error: unexpected expression ‘T’ of kind template_parm_index"

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119378 --- Comment #8 from GCC Commits --- The releases/gcc-14 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:30432ffd9220cc949ef470c47455c6a64f2cdb69 commit r14-11706-g30432ffd9220cc949ef470c47455c6a64f2cdb69 Author: Patrick Palka

[Bug c++/119981] [14/15/16 Regression] rejects lambda used a template argument with inner template as a template param since r15-123

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119981 --- Comment #5 from GCC Commits --- The releases/gcc-14 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:30432ffd9220cc949ef470c47455c6a64f2cdb69 commit r14-11706-g30432ffd9220cc949ef470c47455c6a64f2cdb69 Author: Patrick Palka

[Bug c++/119981] [14/15/16 Regression] rejects lambda used a template argument with inner template as a template param since r15-123

2025-04-30 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119981 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/120042] New: [16] RISC-V: stage1 fails to build with error: ‘dominated_by_p’ was not declared in this scope in tree-vectorizer.h

2025-04-30 Thread ewlu at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120042 Bug ID: 120042 Summary: [16] RISC-V: stage1 fails to build with error: ‘dominated_by_p’ was not declared in this scope in tree-vectorizer.h Product: gcc Version:

[Bug fortran/119994] Valid specification expression in block rejected

2025-04-30 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119994 --- Comment #6 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #5) > The thread on the J3 ML starts here: > > https://mailman.j3-fortran.org/pipermail/j3/2025-April/015230.html While John Reid thinks the code is valid F2018,

[Bug libstdc++/120029] Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p

2025-04-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029 --- Comment #7 from Jonathan Wakely --- ASan pointed out somewhere this isn't quite right yet, but I can fix it.

[Bug tree-optimization/120043] [15/16 Regression] wrong code at -O{s,2,3} with -fallow-store-data-races on x86_64-linux-gnu

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120043 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|pinskia at gcc d

[Bug tree-optimization/120043] [15/16 Regression] wrong code at -O{s,2,3} with -fallow-store-data-races on x86_64-linux-gnu

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120043 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug ipa/120044] [12/13/14/15/16 Regression] wrong code at -O1 and above with "-fno-early-inlining -fno-tree-fre -fno-tree-pre -fno-code-hoisting" on x86_64-linux-gnu

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120044 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-04-30 Summary|wrong cod

  1   2   3   >