[Bug c++/95287] Incorrect default argument checking for specializations of functions with parameter packs

2025-03-10 Thread raul at tambre dot ee via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95287 --- Comment #2 from Raul Tambre --- Clang is now conformant and MSVC remains so. GCC remains the odd one out of the bunch many years later. Notably back when I filed this it did affect me on some real world code as this causes rejection of valid

[Bug target/119131] [15 Regression] ICE: in get_attr_type, at config/aarch64/aarch64.md:17054 at -O2 since r15-6660

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119131 --- Comment #8 from Andrew Pinski --- Created attachment 60706 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60706&action=edit Patch which I am testing

[Bug target/119131] [15 Regression] ICE: in get_attr_type, at config/aarch64/aarch64.md:17054 at -O2 since r15-6660

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

[Bug target/119131] [15 Regression] ICE: in get_attr_type, at config/aarch64/aarch64.md:17054 at -O2 since r15-6660

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119131 --- Comment #6 from Andrew Pinski --- I am trying to understand why there were checks for DECIMAL_FLOAT_MODE_P in the first place. Removing them allows the testcase to pass.

[Bug other/7826] Decimal constant -2147483648 cause a warning "decimal constant is so large that it is unsigned"

2025-03-10 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7826 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org Resolution|

[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2025-03-10 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #9 fro

[Bug c/118579] [OpenMP] c-parser.cc: Improve location of c_parser_omp_variable_list for kind=0

2025-03-10 Thread sandra at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118579 sandra at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |sandra at gcc dot gnu

[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2025-03-10 Thread newbie-02 at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 newbie-02 changed: What|Removed |Added CC||newbie-02 at gmx dot de --- Comment #8 from

[Bug libstdc++/109941] [feat req] Add an option to mark STL types as nodiscard

2025-03-10 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109941 --- Comment #7 from Arthur O'Dwyer --- I've split out the `std::expected` feature request specifically into bug #119197.

[Bug target/119210] [SME] 'smstart za' seems not to dominate the block that uses za register

2025-03-10 Thread xiezhiheng at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119210 --- Comment #7 from xiezhiheng at huawei dot com --- For other information, https://godbolt.org/z/xdPYGsjYd LLVM seems always dominate block .LBB0_14 .LBB0_11: add x23, x23, #1 msr TPIDR2_EL0, xzr cmp x23, #6

[Bug target/119210] [SME] 'smstart za' seems not to dominate the block that uses za register

2025-03-10 Thread xiezhiheng at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119210 --- Comment #5 from xiezhiheng at huawei dot com --- (In reply to Andrew Pinski from comment #3) > So: > mrs x16, tpidr2_el0 > cbnzx16, .L22 <== it will branch to .L22, and miss 'smstart za' > mov x0, x3 >

[Bug target/119210] [SME] 'smstart za' seems not to dominate the block that uses za register

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119210 --- Comment #6 from Andrew Pinski --- (In reply to xiezhiheng from comment #5) > And I am using kernel 5.10 (5.10.0-216.0.0.115.oe2203sp4.aarch64 openEuler > 22.03 (LTS-SP4)) I don't think SME support was added until 5.19 but I could be wrong.

[Bug c/119205] internal compiler error: in tree_to_uhwi, at tree.cc:6587

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119205 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/119210] [SME] 'smstart za' seems not to dominate the block that uses za register

2025-03-10 Thread xiezhiheng at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119210 --- Comment #4 from xiezhiheng at huawei dot com --- (In reply to Andrew Pinski from comment #3) > So: > mrs x16, tpidr2_el0 > cbnzx16, .L22 <== it will branch to .L22, and miss 'smstart za' > mov x0, x3 >

[Bug rtl-optimization/119189] [15 Regression] Code quality regressions on aarch64 since ext-dce change r15-7915-g4ed07a11ee2845

2025-03-10 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119189 --- Comment #3 from Jeffrey A. Law --- And just to confirm, with the patch I'm testing, these all snap back to passing.

[Bug target/119210] [SME] 'smstart za' seems not to dominate the block that uses za register

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119210 --- Comment #3 from Andrew Pinski --- So: mrs x16, tpidr2_el0 cbnzx16, .L22 <== it will branch to .L22, and miss 'smstart za' mov x0, x3 smstart za bl __arm_tpidr2_restore .L22: This me

[Bug target/119210] [SME] 'smstart za' seems not to dominate the block that uses za register

2025-03-10 Thread xiezhiheng at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119210 --- Comment #2 from xiezhiheng at huawei dot com --- (In reply to Andrew Pinski from comment #1) > Created attachment 60705 [details] > testcase > > -O2-march=armv9-a+sve+sve2+sme-f64f64 > > > Next time please attach the testcase (the att

[Bug rtl-optimization/114518] [15 regression] gcc.target/powerpc/combine-2-2.c fails after r14-9692-g839bc42772ba7a

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114518 --- Comment #7 from Andrew Pinski --- Created attachment 60704 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60704&action=edit This fixes the issue The only issue is it turns back on late combine^wforwprop which exposes the broken define

[Bug target/119210] [SME] 'smstart za' seems not to dominate the block that uses za register

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119210 --- Comment #1 from Andrew Pinski --- Created attachment 60705 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60705&action=edit testcase -O2-march=armv9-a+sve+sve2+sme-f64f64 Next time please attach the testcase (the attach a file

[Bug c/119198] ICE: segmentation fault with __builtin_assoc_barrier()

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

[Bug rtl-optimization/119178] Optimization: (x != C) comparison can utilize (x - C) or (x ^ C) result

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

[Bug c/119198] New: ICE: segmentation fault with __builtin_assoc_barrier()

2025-03-10 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119198 Bug ID: 119198 Summary: ICE: segmentation fault with __builtin_assoc_barrier() Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c/119210] New: [SME] 'smstart za' seems not to dominate the block that uses za register

2025-03-10 Thread xiezhiheng at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119210 Bug ID: 119210 Summary: [SME] 'smstart za' seems not to dominate the block that uses za register Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: norma

[Bug rtl-optimization/114518] [15 regression] gcc.target/powerpc/combine-2-2.c fails after r14-9692-g839bc42772ba7a

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114518 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > I am not sure where we should put that transformation or should the target > have a matching pattern for the above and make sure the const value of the > and do

[Bug c++/102194] Incorrect explicit instantiation of constexpr variable accepted

2025-03-10 Thread michael.kenzel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102194 Michael Kenzel changed: What|Removed |Added CC||michael.kenzel at gmail dot com --- Co

[Bug c++/116568] [modules] ICE when exporting template using of unevaluated lambda in key_mergeable

2025-03-10 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116568 Nathaniel Shead changed: What|Removed |Added Status|ASSIGNED|NEW Target Milestone|15.0

[Bug tree-optimization/119209] New: SLP failed to recognize dot_prod pattern(it's taked as a normal reduction)

2025-03-10 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119209 Bug ID: 119209 Summary: SLP failed to recognize dot_prod pattern(it's taked as a normal reduction) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: nor

[Bug target/119208] internal compiler error: in extract_constrain_insn, at recog.cc:2783

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

[Bug middle-end/119204] Internal Compiler Error (“verify_gimple” failed) when compiling code with the wrong return type on strcspn

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

[Bug rtl-optimization/119208] New: internal compiler error: in extract_constrain_insn, at recog.cc:2783

2025-03-10 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119208 Bug ID: 119208 Summary: internal compiler error: in extract_constrain_insn, at recog.cc:2783 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug modula2/119192] New: ICE if TBITSIZE is used in an expression

2025-03-10 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119192 Bug ID: 119192 Summary: ICE if TBITSIZE is used in an expression Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-10 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #8 from Alejandro Colomar --- (In reply to Joseph S. Myers from comment #7) > In particular, the subtle issues around semantics for bit-field expression > operands (see N2958) are definitely something that should be discussed in a >

[Bug c/97986] [12/13/14/15 Regression] ICE in force_constant_size when applying va_arg to VLA type since r6-91-gf8e89441bc5518f4

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97986 Andrew Pinski changed: What|Removed |Added CC||bic60176 at gmail dot com --- Comment #1

[Bug middle-end/119206] Internal compiler error when processing a va_arg expression

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

[Bug c/119207] New: ICE after error with flexible array definition and too large size for array

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119207 Bug ID: 119207 Summary: ICE after error with flexible array definition and too large size for array Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: er

[Bug c++/118924] [12/13/14/15 regression] Wrong code at -O2 and above leading to uninitialized accesses on aarch64-linux-gnu since r10-917-g3b47da42de621c

2025-03-10 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118924 --- Comment #17 from Martin Jambor --- After reading from ao_compare::compare_ao_refs, I tend to think the correct predicate for "tbaa_hazard" from my comment #14 is types_equal_for_same_type_for_tbaa_p (with the last argument true in early SRA

[Bug target/115258] [14 Regression] register swaps for vector perm in some cases after r14-6290

2025-03-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115258 --- Comment #7 from GCC Commits --- The trunk branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:31dcf941ac78c4b1b01dc4b2ce9809f0209153b8 commit r15-7933-g31dcf941ac78c4b1b01dc4b2ce9809f0209153b8 Author: Richard Sandiford Da

[Bug rtl-optimization/119189] [15 Regression] Code quality regressions on aarch64 since ext-dce change r15-7915-g4ed07a11ee2845

2025-03-10 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119189 --- Comment #2 from Jeffrey A. Law --- Almost certainly the change I made to cut down on the size of the livein sets. It can leave the RTX iterator in an undesirable place in some cases resulting in missed optimizations. I saw it right before

[Bug middle-end/119206] New: Internal compiler error when processing a va_arg expression

2025-03-10 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119206 Bug ID: 119206 Summary: Internal compiler error when processing a va_arg expression Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal P

[Bug tree-optimization/119187] vectorizer should be able to SLP already vectorized code

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119187 Andrew Pinski changed: What|Removed |Added Depends on||95960 --- Comment #2 from Andrew Pinski

[Bug tree-optimization/112542] [14/15 Regression] Dead Code Elimination Regression since r14-4280-gc3c6f30496d

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112542 --- Comment #4 from Andrew Pinski --- So disabling dominator opts (-fno-tree-dominator-opts) allows this to be optimized. It looks like DOM is causing the lose of the __builtin_unreachable . Before DOM we had: ``` [local count: 1073741824]

[Bug c/119205] New: internal compiler error: in tree_to_uhwi, at tree.cc:6587

2025-03-10 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119205 Bug ID: 119205 Summary: internal compiler error: in tree_to_uhwi, at tree.cc:6587 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Pri

[Bug fortran/98904] valgrind error in gfc_trans_assignment_1 during bootstrap

2025-03-10 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98904 --- Comment #14 from David Binderman --- I confirm that the problem seems to have gone away. I used this configure script: CC="gcc -g1 -O3 -march=znver3" CXX="g++ -g1 -O3 -march=znver3" \ ../trunk/configure --prefix=$HOME/gcc/results.$DATE.valgr

[Bug middle-end/119204] New: Internal Compiler Error (“verify_gimple” failed) when compiling code with strcspn

2025-03-10 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119204 Bug ID: 119204 Summary: Internal Compiler Error (“verify_gimple” failed) when compiling code with strcspn Product: gcc Version: 15.0 Status: UNCONFIRMED Severi

[Bug c++/119191] Add fix-it for missing argument list in operator()

2025-03-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119191 --- Comment #1 from Jonathan Wakely --- Clang is no better, it also just says "that's wrong" without a fix-it: callop.cc:2:8: error: 'operator()' cannot be the name of a variable or data member 2 | void operator(); |^ callop

[Bug target/119188] Incorrect -fcallgraph-info=su for leaf functions on x86-64

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119188 --- Comment #3 from Andrew Pinski --- So reading https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Developer-Options.html#index-fstack-usage "The qualifier static means that the function manipulates the stack statically: a fixed number of bytes are

[Bug c++/119203] A type with a constrained operator-> gives error: base operand of '->' has non-pointer type

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

[Bug c++/117512] [14/15 Regression] ICE on x86_64-linux-gnu: in cp_gimplify_expr, at cp/cp-gimplify.cc:911 with aligned on a field

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

[Bug tree-optimization/119187] vectorizer should be able to SLP already vectorized code

2025-03-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119187 --- Comment #4 from Richard Biener --- It's one of the TODOs that look easy but are not. Related is to support a fractional VF so we can re-roll for (...) a[32*i] = ..; a[32*i+1] = ..; ... a[32*i + 31] = ...; to match the number of

[Bug middle-end/119167] gimple testcase with startwith does not always get the same CFG as what was provided with

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

[Bug tree-optimization/119196] Missed folding of vector comparisons

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119196 --- Comment #1 from Andrew Pinski --- Confirmed. In fre we have: _3 = _1 < _2; _7 = _1 == _2; _26 = _3 | _7; Note the T definition is enough for this is just: typedef int T1; typedef __attribute__((vector_size(sizeof(T1 T1 T;

[Bug tree-optimization/119196] New: Missed folding of vector comparisons

2025-03-10 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119196 Bug ID: 119196 Summary: Missed folding of vector comparisons Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Prio

[Bug debug/119190] [15 Regression] Debug info quality regression at -O0 since r15-3128

2025-03-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119190 --- Comment #5 from Jakub Jelinek --- I'd say for PR119120 we should better change expansion so that either at -O0 only or always it performs the complex part moves of COMPLEX_EXPR in corresponding integral moves (and do something reasonable als

[Bug tree-optimization/119181] Missed vectorization due to imperfect SLP discovery for 2 grouped load with same base pointer (taken as 1 interleaved load)

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

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

2025-03-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114991 --- Comment #7 from GCC Commits --- The master branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:e355fe414aa3aaf215c7dd9dd789ce217a1b458c commit r15-7932-ge355fe414aa3aaf215c7dd9dd789ce217a1b458c Author: Vladimir N. Makarov

[Bug middle-end/118869] infinite recusion in gimplifier with __builtin_assoc_barrier and structs

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118869 --- Comment #6 from Andrew Pinski --- *** Bug 119198 has been marked as a duplicate of this bug. ***

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #7 from Joseph S. Myers --- In particular, the subtle issues around semantics for bit-field expression operands (see N2958) are definitely something that should be discussed in a single place (i.e. the standard committee) rather than

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #6 from Joseph S. Myers --- I don't think we should add this prematurely. We can wait for the specification to mature in WG14, and I think it's a bad idea to split the discussion between multiple places.

[Bug modula2/119192] ICE if TBITSIZE is used in an expression

2025-03-10 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119192 --- Comment #2 from Gaius Mulley --- Created attachment 60694 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60694&action=edit Proposed fix for TBITSIZE Here is a proposed fix which bootstraps on amd64 gnu linux.

[Bug c++/71369] Error message is confusing when missing template keyword with operator().

2025-03-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71369 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug preprocessor/116087] Add optional warning for too large macro expansion

2025-03-10 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116087 --- Comment #4 from Andi Kleen --- After some digging into the code: libcpp already keeps track of how many tokens get expanded in a global. This is even accessible for through linemap's statistics dumped on -fmem-report, but only as a averaged

[Bug c/119183] [12/13/14/15 Regression] Compilation takes a long time on semi big inner expression

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

[Bug c++/119162] missing error with constexpr new

2025-03-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119162 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org St

[Bug c/119183] [12/13/14/15 Regression] Compilation takes a long time on semi big inner expression

2025-03-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119183 --- Comment #6 from Jakub Jelinek --- Reduced testcase: int foo (void); #define A(x) (1.0f * (1.0f * (1.0f * (1.0f * (1.0f * (1.0f * (1.0f * (1.0f * (x) float bar (float r) { r += A (A (A (A (A (A (A (A (foo (); return r; }

[Bug fortran/118896] The fortran compiler is unable to devirtualize typebound indirect calls

2025-03-10 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118896 Mikael Morin changed: What|Removed |Added Component|tree-optimization |fortran --- Comment #6 from Mikael Morin

[Bug tree-optimization/119193] New: Suboptimal packing codegen

2025-03-10 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119193 Bug ID: 119193 Summary: Suboptimal packing codegen Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3

[Bug fortran/119199] valgrind error in translate_common

2025-03-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119199 --- Comment #2 from anlauf at gcc dot gnu.org --- Likely r15-4104. Null pointer dereference, obviously fixed by: diff --git a/gcc/fortran/trans-common.cc b/gcc/fortran/trans-common.cc index 70b45174f84..2db50da20dd 100644 --- a/gcc/fortran/tran

[Bug testsuite/116860] Move optimization from match.pd into tree-ssa-reassoc (optimize_range_tests) where it can be more effective

2025-03-10 Thread konstantinos.eleftheriou at vrull dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116860 --- Comment #11 from Konstantinos Eleftheriou --- We have sent a solution for this (https://gcc.gnu.org/pipermail/gcc-patches/2025-March/677190.html).

[Bug c++/119191] Add fix-it for missing argument list in operator()

2025-03-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119191 --- Comment #3 from Jonathan Wakely --- The 'operator(int)' case is interesting because it could be a typo for several other operators, operator+(int) or operator++(int) or operator[](int). Personally, I know that I forget the double parens for

[Bug target/115439] [15 Regression] ICEs after r15-638 on master-thumb_m55_hard_eabi

2025-03-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115439 --- Comment #9 from GCC Commits --- The trunk branch has been updated by Christophe Lyon : https://gcc.gnu.org/g:e187ed927ae52df7998376d6ccfdd2181fc8f774 commit r15-7926-ge187ed927ae52df7998376d6ccfdd2181fc8f774 Author: Christophe Lyon Date:

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

2025-03-10 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119135 Patrick Palka changed: What|Removed |Added Target Milestone|--- |13.4 Ever confirmed|0

[Bug modula2/119192] ICE if TBITSIZE is used in an expression

2025-03-10 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119192 Gaius Mulley changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/119166] [15 regression] ICE: SIGSEGV in get_load_store_type (tree-vect-stmts.cc:2711) with -O2 --param=vect-force-slp=0

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

[Bug c++/119195] New: GCC 14.2.0: Incorrect Handling of const std::string_view& as a Template Argument

2025-03-10 Thread hansolshin at vacuumzero dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119195 Bug ID: 119195 Summary: GCC 14.2.0: Incorrect Handling of const std::string_view& as a Template Argument Product: gcc Version: 14.2.0 Status: UNCONFIRMED Sever

[Bug c/119183] [12/13/14/15 Regression] Compilation takes a long time on semi big inner expression

2025-03-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119183 --- Comment #7 from Richard Biener --- It would ask for a flag on the tree nodes so we don't repeatedly recurse down the tree. TREE_NO_SIDE_EFFECTS? But yes, limiting the search depth is the simplest solution.

[Bug tree-optimization/119196] Missed folding of vector comparisons

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119196 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org Se

[Bug translation/119201] New: Wrong plural forms in "missing primary template attribute"

2025-03-10 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119201 Bug ID: 119201 Summary: Wrong plural forms in "missing primary template attribute" Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Pr

[Bug modula2/119192] ICE if TBITSIZE is used in an expression

2025-03-10 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119192 Gaius Mulley changed: What|Removed |Added Last reconfirmed||2025-03-10 Status|UNCONFIRME

[Bug middle-end/118871] internal compiler error: Segmentation fault caused by asm goto

2025-03-10 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118871 --- Comment #1 from Bi6c --- Is it considered as invalid code? I tried with "goto l;", and it is compilable.

[Bug middle-end/118871] internal compiler error: Segmentation fault caused by asm goto with non local label

2025-03-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118871 --- Comment #2 from Jakub Jelinek --- It is invalid. Non-local goto is a special extension, which needs extra handling on the assembler level, something that writers of inline asm have no idea about and what exactly to use there. So, it is noth

[Bug d/119112] dub OOMs with restrictive ulimit in Docker

2025-03-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119112 --- Comment #1 from GCC Commits --- The releases/gcc-14 branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:ca0ea3d4192313ad00da4ff734baffcecafe0b1f commit r14-11399-gca0ea3d4192313ad00da4ff734baffcecafe0b1f Author: Iain Buclaw Dat

[Bug debug/119190] [15 Regression] Debug info quality regression at -O0 since r15-3128

2025-03-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119190 --- Comment #3 from Richard Biener --- Oh, so we don't have debug stmts at -O0 because we don't run var-tracking. I guess the patch is reasonable.

[Bug c++/119191] Add fix-it for missing argument list in operator()

2025-03-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119191 --- Comment #4 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > callop.cc:3:16: error: expected type-specifier before ‘(’ token > 3 | void operator(int, int); > |^ Oops, I posted the output fr

[Bug tree-optimization/119187] vectorizer should be able to SLP already vectorized code

2025-03-10 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119187 --- Comment #3 from Tamar Christina --- (In reply to Andrew Pinski from comment #2) > (In reply to Andrew Pinski from comment #1) > > There is another bug report for a similar thing but with SSE and AVX2. > > yes PR 95960. Ah yeah, I guess I w

[Bug rtl-optimization/119189] [15 Regression] Code quality regressions on aarch64 since ext-dce change r15-7915-g4ed07a11ee2845

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119189 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-03-10 Target Milestone|---

[Bug target/119120] Unnecessary fldl/stpl pair when assigning real or imaginary part of a complex variable

2025-03-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119120 --- Comment #4 from Jakub Jelinek --- I think this regressed with r0-100845-gbd2e63a1c4d4159f576c31bee9e4090919462aa5.

[Bug c++/119203] A type with a constrained operator-> gives error: base operand of '->' has non-pointer type

2025-03-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119203 --- Comment #1 from Jonathan Wakely --- For the original example, clang says what's wrong: arrow.cc:14:7: error: no viable overloaded 'operator->' 14 | iter->i; | ^ arrow.cc:6:8: note: candidate function not viable: constraints

[Bug c++/119203] New: A type with a constrained operator-> gives error: base operand of '->' has non-pointer type

2025-03-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119203 Bug ID: 119203 Summary: A type with a constrained operator-> gives error: base operand of '->' has non-pointer type Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug fortran/115316] valgrind error in insert_parameter_exprs

2025-03-10 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115316 --- Comment #1 from David Binderman --- As of today, 20250310, still broken.

[Bug c++/119194] New: GCC 14.2.0: Incorrect Handling of const std::string_view& as a Template Argument

2025-03-10 Thread hansolshin at vacuumzero dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119194 Bug ID: 119194 Summary: GCC 14.2.0: Incorrect Handling of const std::string_view& as a Template Argument Product: gcc Version: 14.2.0 Status: UNCONFIRMED Sever

[Bug fortran/115316] [PDT] valgrind error in insert_parameter_exprs

2025-03-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115316 anlauf at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 Summary|valgri

[Bug modula2/119192] ICE if TBITSIZE is used in an expression

2025-03-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119192 --- Comment #3 from GCC Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:40a4f3dead623db86bc8f7255cbe524701f4aeb0 commit r15-7931-g40a4f3dead623db86bc8f7255cbe524701f4aeb0 Author: Gaius Mulley Date: Mon

[Bug c/119124] ICE: verify_flow_info failed

2025-03-10 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119124 --- Comment #1 from Bi6c --- I got ICE (verify_flow_info failed) with asm goto and local function call.

[Bug libstdc++/119197] New: [feat req] `std::expected` should be nodiscard

2025-03-10 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119197 Bug ID: 119197 Summary: [feat req] `std::expected` should be nodiscard Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug target/119188] Incorrect -fcallgraph-info=su for leaf functions on x86-64

2025-03-10 Thread lukeshu at lukeshu dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119188 --- Comment #2 from Luke Shumaker --- I appreciate the explanation. Does that make it any less of a bug? Should I change the title to "x86 red-zone not taken into account by -fcallgraph-info=su"?

[Bug fortran/119199] valgrind error in translate_common

2025-03-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119199 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|

[Bug middle-end/118897] [12/13/14/15 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in categorize_ctor_elements_1, at expr.cc:7247

2025-03-10 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118897 --- Comment #1 from Bi6c --- I try to minimize the input: https://godbolt.org/z/4G7rq4qGP

[Bug fortran/119199] valgrind error in translate_common

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

[Bug middle-end/118899] ICE: tree check: expected tree_list, have error_mark in get_attribute_name, at attribs.cc:1063

2025-03-10 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118899 --- Comment #1 from Bi6c --- I try to minimize the input: https://godbolt.org/z/oETd8vnhP The issue is that the parameters in the macro definition and the usage don't match: Defined as `A3(expect, expr, align)` Used as `A3(0, 32, P64_P_P32_P_P

[Bug target/119120] Unnecessary fldl/stpl pair when assigning real or imaginary part of a complex variable

2025-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119120 --- Comment #3 from Andrew Pinski --- (In reply to Zoltan Vajda from comment #0) > This is not an academic problem. The implementation of operator /= of > std::complex has this behavior until GCC 8.5 (inclusive). The std::complex's operator /=

  1   2   >