[Bug tree-optimization/120268] Missed removing loop of setting zero when dereference pointer (memset)

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120268 --- Comment #1 from Andrew Pinski --- This is only valid with -fallow-store-data-races. Otherwise you can introduce a race condition according to the C/C++11 memory model.

[Bug tree-optimization/120268] Missed removing loop of setting zero when dereference pointer (memset)

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

[Bug tree-optimization/120268] Missed removing loop of setting zero when dereference pointer (memset) at -O3 -fallow-store-data-races

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120268 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-05-14 Summary|Missed re

[Bug c++/46687] Class member lookup ambiguity w/ overloaded static members and using declarations

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46687 Andrew Pinski changed: What|Removed |Added Assignee|fabien at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug c++/120267] incorrectly ambiguous lookup depending on base class order

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120267 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid --- Comment #1 from Andre

[Bug c/120269] New: ICE: tree check: expected class type, have exceptional (error_mark) in c_parser_generic_selection, at c/c-parser.cc:9270

2025-05-13 Thread rundongyang22 at m dot fudan.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120269 Bug ID: 120269 Summary: ICE: tree check: expected class type, have exceptional (error_mark) in c_parser_generic_selection, at c/c-parser.cc:9270 Product: gcc Ver

[Bug libstdc++/67990] compare() does not sort null characters in locale collation order

2025-05-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67990 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2025-05-13 Status|UNCONFIR

[Bug tree-optimization/120254] wrong code at -O3 on x86_64-pc-linux-gnu

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120254 --- Comment #3 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #2) > gcc -fsanitize=undefined -o pr120254{,.c}; ./pr120254 > pr120254.c:20:32: runtime error: signed integer overflow: -804068425 + > -2004610352 cannot be represente

[Bug tree-optimization/120254] wrong code at -O3 on x86_64-pc-linux-gnu

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

[Bug modula2/119915] Sprintf1 repeats the entire format string if it starts with a directive

2025-05-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119915 --- Comment #4 from GCC Commits --- The releases/gcc-15 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:07c5d7ce0daccc8110953a8e65861ffc17ed92aa commit r15-9675-g07c5d7ce0daccc8110953a8e65861ffc17ed92aa Author: Gaius Mulley Da

[Bug fortran/120163] [15 Regression] Can not import module containig call to pure routine via abstract interface

2025-05-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120163 --- Comment #4 from GCC Commits --- The releases/gcc-15 branch has been updated by Thomas Koenig : https://gcc.gnu.org/g:a3eed34d75ce8fe13e3cdc28c42849ada26c316f commit r15-9678-ga3eed34d75ce8fe13e3cdc28c42849ada26c316f Author: Thomas Koenig

[Bug fortran/120163] [15 Regression] Can not import module containig call to pure routine via abstract interface

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

[Bug modula2/115276] libgm2 wraptime.InitTM returns NIL

2025-05-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115276 --- Comment #9 from GCC Commits --- The releases/gcc-15 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:a10dd5c46aa41e108b04f2494ffb00c6cab50c75 commit r15-9676-ga10dd5c46aa41e108b04f2494ffb00c6cab50c75 Author: Gaius Mulley Da

[Bug c++/120262] New: internal compiler error: in remap_type_1 since version 12.1

2025-05-13 Thread mario.rodriguezb1 at um dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120262 Bug ID: 120262 Summary: internal compiler error: in remap_type_1 since version 12.1 Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal P

[Bug libstdc++/120190] Definition of the primary template of std::format_kind seems IFNDR

2025-05-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120190 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |15.2

[Bug c++/120261] GCC rejects valid constexpr value initialization with private members (with one member has NSDMI)

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120261 --- Comment #3 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #2) > EDG rejects it for the same reason as GCC. > > Clang 17 rejected it too, but Clang 18 accepts it. > > I suspect this is a Core DR but I'm not sure which one.

[Bug modula2/120188] documented example does not work

2025-05-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120188 --- Comment #10 from GCC Commits --- The releases/gcc-15 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:df1407f2122ec6e670d700c090e765d0a06859ee commit r15-9672-gdf1407f2122ec6e670d700c090e765d0a06859ee Author: Gaius Mulley D

[Bug middle-end/118443] [Meta bug] Bugs triggered by and blocking more smtgcc testing

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

[Bug c++/120247] __builtin_assoc_barrier and binding to a reference type

2025-05-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120247 --- Comment #6 from Jakub Jelinek --- Perhaps __builtin_assoc_barrier should lower to NON_LVALUE_EXPR (PAREN_EXPR (expr)) or PAREN_EXPR (NON_LVALUE_EXPR (expr)) for C++? Of course, a big question is what the builtin should do for class types (if

[Bug c++/120261] GCC rejects valid constexpr value initialization with private members (with one member has NSDMI)

2025-05-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120261 --- Comment #2 from Jonathan Wakely --- EDG rejects it for the same reason as GCC. Clang 17 rejected it too, but Clang 18 accepts it. I suspect this is a Core DR but I'm not sure which one.

[Bug libstdc++/120266] New: newly introduced problems when using lto'ed libstdc++-v3 in a static link

2025-05-13 Thread qubos at outlook dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120266 Bug ID: 120266 Summary: newly introduced problems when using lto'ed libstdc++-v3 in a static link Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: no

[Bug libstdc++/120266] newly introduced problems when using lto'ed libstdc++-v3 in a static link

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120266 --- Comment #1 from Andrew Pinski --- I suspect without a testcase it is going to be hard to reproduce this. We did have one accidently ABI change with -std=c++20 but I don't think that is the issue here. (see PR 120012; it is only fixed in GCC

[Bug middle-end/120264] New: Optimize modulus when the divisor is a small Mersenne number.

2025-05-13 Thread cassio.neri at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120264 Bug ID: 120264 Summary: Optimize modulus when the divisor is a small Mersenne number. Product: gcc Version: 15.1.1 Status: UNCONFIRMED Severity: normal

[Bug c++/120261] GCC rejects valid constexpr value initialization with private members (with one member has NSDMI)

2025-05-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120261 --- Comment #4 from Jonathan Wakely --- MSVC rejected it until v19.27 (circa 2019, I think?) so I think it's a much more recent change.

[Bug middle-end/120264] Optimize modulus when the divisor is a small Mersenne number.

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120264 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Severity|

[Bug tree-optimization/120265] New: Optimize modular counters

2025-05-13 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120265 Bug ID: 120265 Summary: Optimize modular counters Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug middle-end/120264] Optimize modulus when the divisor is a small Mersenne number

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120264 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-05-13 Status|UNCONFIRM

[Bug tree-optimization/120265] Optimize modular counters

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120265 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Severity|

[Bug tree-optimization/120265] Optimize modular counters

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120265 --- Comment #1 from Andrew Pinski --- I think this is basically what PR 20231 is asking for with a non-constant value even :).

[Bug c++/120261] GCC rejects valid constexpr value initialization with private memembers

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

[Bug tree-optimization/120258] [12/13/14/15/16 regression] wrong code at -O{s,1,2,3} on x86_64-linux-gnu

2025-05-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120258 Richard Biener changed: What|Removed |Added Known to fail||11.5.0 --- Comment #3 from Richard Bie

[Bug rtl-optimization/120258] [12/13/14/15/16 regression] wrong code at -O{s,1,2,3} on x86_64-linux-gnu

2025-05-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120258 Richard Biener changed: What|Removed |Added Summary|[11/12/13/14/15/16 |[12/13/14/15/16 regression]

[Bug c++/120247] __builtin_assoc_barrier and binding to a reference type

2025-05-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120247 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug modula2/119914] Passing a constant to the unbounded array compiles and causes a.out to dump core

2025-05-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119914 --- Comment #7 from GCC Commits --- The releases/gcc-15 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:b8032bec831a4a48636e7ffd771e76efc1ff27ea commit r15-9674-gb8032bec831a4a48636e7ffd771e76efc1ff27ea Author: Gaius Mulley Da

[Bug c++/120247] __builtin_assoc_barrier and binding to a reference type

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120247 --- Comment #3 from Andrew Pinski --- (In reply to Richard Biener from comment #2) > PAREN_EXPR should behave like NON_LVALUE_EXPR, aka it produces an rvalue. Right that is what I expected. The C front-end rejects it correctly but the C++ front

[Bug c++/120257] ICE (Segfault) when expanding deeply nested macros with constructor calls (std::string) since 15.1

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

[Bug c++/120257] ICE (Segfault) when expanding deeply nested macros with constructor calls (std::string) since 15.1

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120257 --- Comment #2 from Andrew Pinski --- >any modification in the code leads to the expected behaviour, which is "Killed >- processing time exceeded" That is just a timeout, because gotbolt has a timeout because they don't want over run programs.

[Bug tree-optimization/119903] [13/14/15/16 Regression] non-call exception vs traping comparison

2025-05-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119903 --- Comment #6 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:eaee2df409ae40ab4a0c557839d6f64b9c6b936d commit r16-600-geaee2df409ae40ab4a0c557839d6f64b9c6b936d Author: Andrew Pinski Date: Tue

[Bug c/120269] ICE: tree check: expected class type, have exceptional (error_mark) in c_parser_generic_selection, at c/c-parser.cc:9270

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120269 Andrew Pinski changed: What|Removed |Added Known to work||15.1.0 Known to fail|

[Bug rtl-optimization/120270] New: ICE with -O1 in expand_debug_locations, at cfgexpand.cc:5668

2025-05-13 Thread aozgaa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120270 Bug ID: 120270 Summary: ICE with -O1 in expand_debug_locations, at cfgexpand.cc:5668 Product: gcc Version: unknown URL: https://godbolt.org/z/M3dTTzoWc St

[Bug target/118257] [SH] libgcc: Missing exceptions and rounding mode for soft-fp

2025-05-13 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118257 --- Comment #2 from Oleg Endo --- Is there anything that needs to be addressed for this one?

[Bug middle-end/120270] [13/14/15/16 Regression] ICE with -O1 in expand_debug_locations, at cfgexpand.cc:5668

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120270 Andrew Pinski changed: What|Removed |Added Known to work||12.4.0 Known to fail|

[Bug c/120269] ICE: tree check: expected class type, have exceptional (error_mark) in c_parser_generic_selection, at c/c-parser.cc:9270

2025-05-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120269 --- Comment #1 from Sam James --- If fuzzing, please ideally use releases/gcc-13 rather than 13.1.0.

[Bug c/120269] ICE: tree check: expected class type, have exceptional (error_mark) in c_parser_generic_selection, at c/c-parser.cc:9270

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

[Bug target/118257] [SH] libgcc: Missing exceptions and rounding mode for soft-fp

2025-05-13 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118257 Oleg Endo changed: What|Removed |Added CC||olegendo at gcc dot gnu.org Sta

[Bug middle-end/120270] ICE with -O1 in expand_debug_locations, at cfgexpand.cc:5668

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120270 Andrew Pinski changed: What|Removed |Added Component|rtl-optimization|middle-end URL|https://g

[Bug middle-end/120270] [13/14/15/16 Regression] ICE with -O1 in expand_debug_locations, at cfgexpand.cc:5668

2025-05-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120270 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Build|x86_64-pc-linux-gn

[Bug target/103771] [12/13/14 Regression] Missed vectorization under -mavx512f -mavx512vl after r12-5489

2025-05-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103771 --- Comment #45 from GCC Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:e3385fed3fc61ac505fb5c1ffa09758a6f2489eb commit r16-605-ge3385fed3fc61ac505fb5c1ffa09758a6f2489eb Author: liuhongt Date: Mon Apr

[Bug target/120215] [16 Regression] FAIL: gcc.target/i386/pr78794.c scan-assembler pandn by r16-517-g993aa0bd28722c

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

[Bug target/79748] [Enhancement] no_callee_saved_registers function attribute (on x86)

2025-05-13 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79748 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #4 from F

[Bug target/119628] Need better mechanisms to manage register saves in callee for tail calls (inc. preserve_none for x86_64?)

2025-05-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119628 Sam James changed: What|Removed |Added Keywords||patch --- Comment #16 from Sam James --- h

[Bug tree-optimization/120254] [12/13/14/15 regression] wrong code at -O3 -fwrapv on x86_64-pc-linux-gnu (-floop-interchange)

2025-05-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120254 Sam James changed: What|Removed |Added Target Milestone|--- |12.5 Summary|wrong code at -O3 o

[Bug c++/120243] [15/16 Regression] Exception rethrown from coroutine promise type unhandled_exception not caught under -O1

2025-05-13 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120243 --- Comment #5 from Iain Sandoe --- we synthesise the same code, but the revised builder uses start_preparsed_function()/finish_function() and the latter introduces an extra try block. Investigating.

[Bug c++/120272] New: ICE in get_local_decls, at cp/name-lookup.c:4594 since 13.3

2025-05-13 Thread mario.rodriguezb1 at um dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120272 Bug ID: 120272 Summary: ICE in get_local_decls, at cp/name-lookup.c:4594 since 13.3 Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal P

[Bug c++/120271] typename T not allowed in sizeof

2025-05-13 Thread tymi at tymi dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120271 --- Comment #1 from Tymi --- never mind, gcc parses it correctly

[Bug c++/120271] typename T not allowed in sizeof

2025-05-13 Thread tymi at tymi dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120271 Tymi changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/120271] New: typename T not allowed in sizeof

2025-05-13 Thread tymi at tymi dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120271 Bug ID: 120271 Summary: typename T not allowed in sizeof Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

<    1   2