[Bug c/117981] -Wc11-c23-compat does not warn for bool, false and true

2024-12-10 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117981 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Commen

[Bug c++/59389] [C++11] bogus error: call of overloaded ‘Foo()’ is ambiguous

2024-12-10 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59389 --- Comment #9 from Sergey Fedorov --- (In reply to Andrew Pinski from comment #7) > (In reply to Sergey Fedorov from comment #6) > > I am getting a similar-looking error with gcc-13.2.0 now: > > https://github.com/NGSolve/ngsolve/issues/68 > >

[Bug fortran/117765] Impure function within a BLOCK construct within a DO CONCURRENT

2024-12-10 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117765 Sam James changed: What|Removed |Added Target Milestone|--- |15.0 Keywords|

[Bug libfortran/117820] Formatted output gives wrong result.

2024-12-10 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117820 Sam James changed: What|Removed |Added Target Milestone|--- |14.3 Keywords|

[Bug target/117974] RISC-V: VSETVL hoisting across branch

2024-12-10 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117974 --- Comment #7 from JuzheZhong --- (In reply to Vineet Gupta from comment #4) > (In reply to JuzheZhong from comment #2) > > We need to split all insns since some of them are not the ultimate RVV > > instruction pattern that depend on VL/VTYPE.

[Bug c++/59389] [C++11] bogus error: call of overloaded ‘Foo()’ is ambiguous

2024-12-10 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59389 --- Comment #10 from Sam James --- If in doubt, in general, it's better to file it separately.

[Bug target/117991] [15 regression] RISC-V: g++/template/builtin-speculation-overloads[14].C assertion error since addition in r15-6042-g9ed094a817e

2024-12-10 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117991 Sam James changed: What|Removed |Added Summary|[15] RISC-V:|[15 regression] RISC-V: |

[Bug target/117990] [15 regression] RISC-V: Miscompile at -O3 zvl 256 since r15-4746-g30435cc2610

2024-12-10 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117990 --- Comment #4 from Li Pan --- Another example to reproduce this. 1 │ #define STEP 10 2 │ 3 │ char d[225]; 4 │ int e[STEP]; 5 │ 6 │ int main() { 7 │ for (long h = 0; h < STEP; ++h) 8 │ d[h * STEP] =

[Bug driver/117992] gcc -flto -fharden leads to warning

2024-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117992 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug driver/117992] gcc -flto -fharden leads to warning

2024-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117992 Andrew Pinski changed: What|Removed |Added Depends on||117739 --- Comment #3 from Andrew Pinsk

[Bug target/117974] RISC-V: VSETVL hoisting across branch

2024-12-10 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117974 --- Comment #8 from Vineet Gupta --- (In reply to JuzheZhong from comment #7) > I think Phase 3 early fusion should handle this scenario. It is handling this, except that it fusing the 2nd into 1st which happens to be before the BEQ, hence this

[Bug target/117990] [15 regression] RISC-V: Miscompile at -O3 zvl 256 since r15-4746-g30435cc2610

2024-12-10 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117990 --- Comment #5 from Li Pan --- The tree optimized looks right up to a point. 5 │ int main () 6 │ { 7 │ vector(8) int vect__4.8; 8 │ vector(8) char vect__3.7; 9 │ vector(8) char D.2823; 10 │ int _5; 11 │

[Bug c++/117983] [13/14 Regression] -Wstringop-overflow false positive for __builtin_memmove from vector::insert

2024-12-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117983 Richard Biener changed: What|Removed |Added Keywords||diagnostic Summary|[13.2 re

[Bug libstdc++/109517] Failure to compile constexpr std::copy with -D_GLIBCXX_DEBUG

2024-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109517 --- Comment #3 from Jonathan Wakely --- Patch to solve this in the library as a workaround for the FE bug: https://gcc.gnu.org/pipermail/gcc-patches/2024-December/671343.html

[Bug libstdc++/109976] error: is not a constant expression in std::equal() with _GLIBCXX_DEBUG

2024-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109976 --- Comment #3 from Jonathan Wakely --- Patch to solve this in the library as a workaround for the FE bug: https://gcc.gnu.org/pipermail/gcc-patches/2024-December/671343.html

[Bug c++/117985] New: ICE in gimplify_var_or_parm_decl, at gimplify.cc:3308

2024-12-10 Thread thomgree at cisco dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117985 Bug ID: 117985 Summary: ICE in gimplify_var_or_parm_decl, at gimplify.cc:3308 Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Com

[Bug ipa/117984] New: missed IPA constant propagation

2024-12-10 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117984 Bug ID: 117984 Summary: missed IPA constant propagation Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa As

[Bug libstdc++/87604] memmove without std::allocator

2024-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87604 Jonathan Wakely changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug c++/103827] function which takes an argument via (hidden) reference should assume the argument does not escape or is only read from

2024-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103827 --- Comment #17 from Jason Merrill --- (In reply to Jan Hubicka from comment #16) > We are not too good on using const on automatic variables and static > ones with constructors since they become effectively const only when > they are constructe

[Bug middle-end/117987] New: Function multiversioning does not respect decl asms

2024-12-10 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117987 Bug ID: 117987 Summary: Function multiversioning does not respect decl asms Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug ada/117956] assertion failure in precondition of Sinfo.Nodes with -gnatX

2024-12-10 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117956 Eric Botcazou changed: What|Removed |Added Summary|Assert failure in |assertion failure in

[Bug c++/117880] [14/15 Regression] ICE with -Wduplicated-branches

2024-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117880 --- Comment #2 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:d26c166001d6a5bdfd94be6e6d17135669ed340b commit r15-6089-gd26c166001d6a5bdfd94be6e6d17135669ed340b Author: Marek Polacek Date: Mo

[Bug c++/117880] [14 Regression] ICE with -Wduplicated-branches

2024-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117880 Marek Polacek changed: What|Removed |Added Summary|[14/15 Regression] ICE with |[14 Regression] ICE with

[Bug libfortran/117819] Formatted READ with BZ in format fails

2024-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117819 --- Comment #3 from GCC Commits --- The master branch has been updated by Jerry DeLisle : https://gcc.gnu.org/g:cf406a6c79ce404c45f99bcf2df3293269dbb462 commit r15-6090-gcf406a6c79ce404c45f99bcf2df3293269dbb462 Author: Jerry DeLisle Date: M

[Bug sarif-replay/117988] New: Logical locations for sarif-replay errors

2024-12-10 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117988 Bug ID: 117988 Summary: Logical locations for sarif-replay errors Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: sar

[Bug target/117989] New: aarch64: FMV attaches symvers to the wrong decl

2024-12-10 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117989 Bug ID: 117989 Summary: aarch64: FMV attaches symvers to the wrong decl Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/117985] [12/13/14/15 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.cc:3308

2024-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117985 --- Comment #3 from Marek Polacek --- Also add this (making ~_Vector_base constexpr): it seems to have some effect (g++12 crashes with this but not with #c2): ``` // PR c++/117985 struct _Vector_impl { constexpr _Vector_impl() {} }; struct _

[Bug c++/117980] [15 Regression] ICE in in cxx_eval_outermost_constant_expr, at cp/constexpr.cc:8950 on nix-2.25.2 since r15-6052-g12de1942a0a673

2024-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117980 --- Comment #7 from Marek Polacek --- Candidate fix: --- a/gcc/cp/cp-gimplify.cc +++ b/gcc/cp/cp-gimplify.cc @@ -1477,7 +1477,7 @@ cp_fold_r (tree *stmt_p, int *walk_subtrees, void *data_) *walk_subtrees = 0; if (!flag_no_inline)

[Bug modula2/117120] case ch with a nul char constant causes ICE

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

[Bug modula2/117120] case ch with a nul char constant causes ICE

2024-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117120 --- Comment #2 from GCC Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:e0ab8816ea53e2a343f7e945f4718172bff5ce95 commit r15-6093-ge0ab8816ea53e2a343f7e945f4718172bff5ce95 Author: Gaius Mulley Date: Tue

[Bug target/117990] [15] RISC-V: Miscompile at -O3 zvl 256 since r15-4746-g30435cc2610

2024-12-10 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117990 --- Comment #1 from Patrick O'Neill --- -flto can be replaced with -fwhole-program: -march=rv64gcv_zvl256b -fwhole-program -O3 -mrvv-vector-bits=zvl test.c -o user-config.out

[Bug target/117974] RISC-V: VSETVL hoisting across branch

2024-12-10 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117974 --- Comment #4 from Vineet Gupta --- (In reply to JuzheZhong from comment #2) > We need to split all insns since some of them are not the ultimate RVV > instruction pattern that depend on VL/VTYPE. > And I don't think the vsetvli should be keep

[Bug fortran/117643] F_C_STRING from F23 is missing

2024-12-10 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117643 kargls at comcast dot net changed: What|Removed |Added Attachment #59617|0 |1 is obsolete|

[Bug rtl-optimization/117248] gcc/libgcc/libgcc2.h:232:25: internal compiler error: Arithmetic exception

2024-12-10 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117248 --- Comment #20 from John David Anglin --- It appears I again forgot to add -mlra to the compile command. The problem is clear in the generated assembly code: extrs %r5,31,16,%r26 extrs %r24,31,16,%r7 copy %r7,%r25

[Bug target/117722] RISC-V: Failed to vectorize x264_pixel_sad_4x4

2024-12-10 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117722 --- Comment #14 from Vineet Gupta --- (In reply to Li Pan from comment #7) > Created attachment 59661 [details] > with usad pattern Can you please post the patch, lest we duplicate your effort. It would be nice to test it on real hardware. @Ro

[Bug target/117974] RISC-V: VSETVL hoisting across branch

2024-12-10 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117974 Jeffrey A. Law changed: What|Removed |Added CC||law at gcc dot gnu.org --- Comment #5

[Bug tree-optimization/117888] cunrolli doesn't accurately remember what's "innermost"

2024-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117888 --- Comment #5 from GCC Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:ee2f19b0937b5efc0b23c4319cbd4a38b27eac6e commit r15-6097-gee2f19b0937b5efc0b23c4319cbd4a38b27eac6e Author: liuhongt Date: Mon Dec

[Bug tree-optimization/117888] cunrolli doesn't accurately remember what's "innermost"

2024-12-10 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117888 Hongtao Liu changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/117874] [15 Regression] 17% regression for 433.milc on Zen4

2024-12-10 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117874 --- Comment #11 from Hongtao Liu --- (In reply to Richard Biener from comment #10) > The mult_su3_an part is now resolved. See PR117888 for the rest. Fixed by r15-6097-gee2f19b0937b5efc0b23c4319cbd4a38b27eac6e

[Bug other/117914] [reload][avr] In function __objc_add_class_to_hash class-i.c:2162:1: error: insn does not satisfy its constraints:

2024-12-10 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117914 Georg-Johann Lay changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug sarif-replay/117944] sarif-replay doesn't provide URLs for warnings

2024-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117944 --- Comment #1 from GCC Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:f102b82d3da6dd4d5f9af1cd622fce93d0c494eb commit r15-6095-gf102b82d3da6dd4d5f9af1cd622fce93d0c494eb Author: David Malcolm Date: T

[Bug sarif-replay/117944] sarif-replay doesn't provide URLs for warnings

2024-12-10 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117944 David Malcolm changed: What|Removed |Added Version|unknown |15.0 Status|UNCONFIRMED

[Bug c++/117980] [15 Regression] ICE in in cxx_eval_outermost_constant_expr, at cp/constexpr.cc:8950 on nix-2.25.2 since r15-6052-g12de1942a0a673

2024-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117980 --- Comment #8 from Jonathan Wakely --- Thanks, that seems to fix the library failures in debug mode

[Bug driver/117992] New: gcc -flto -fharden leads to warning

2024-12-10 Thread icenowy at aosc dot io via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117992 Bug ID: 117992 Summary: gcc -flto -fharden leads to warning Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver

[Bug driver/117992] gcc -flto -fharden leads to warning

2024-12-10 Thread icenowy at aosc dot io via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117992 --- Comment #1 from Icenowy Zheng --- BTW adding `-Wno-hardened` cannot suppress this warning.

[Bug rtl-optimization/117248] gcc/libgcc/libgcc2.h:232:25: internal compiler error: Arithmetic exception

2024-12-10 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117248 --- Comment #21 from John David Anglin --- Created attachment 59829 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59829&action=edit Reload RTL dump

[Bug target/117722] RISC-V: Failed to vectorize x264_pixel_sad_4x4

2024-12-10 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117722 --- Comment #15 from Robin Dapp --- (In reply to Vineet Gupta from comment #14) > (In reply to Li Pan from comment #7) > > Created attachment 59661 [details] > > with usad pattern > > Can you please post the patch, lest we duplicate your effort

[Bug target/112092] RISC-V: Suboptimal RVV code produced for vsetvl-11.c and vsetvlmax-8.c

2024-12-10 Thread macro at orcam dot me.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112092 --- Comment #16 from Maciej W. Rozycki --- As I say GCC doesn't know the inline asm makes use of the vector unit, so the compiler is free to make any optimisations that it can see fit based on vector code it has produced itself. Actually in thi

[Bug c++/117983] [13/14 Regression] -Wstringop-overflow false positive for __builtin_memmove from vector::insert

2024-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117983 Andrew Pinski changed: What|Removed |Added Known to work|15.0| --- Comment #1 from Andrew Pinski ---

[Bug libstdc++/117982] [C++23] Implement std::start_lifetime_as and std::start_lifetime_as_array

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

[Bug target/117991] New: [15] RISC-V: g++/template/builtin-speculation-overloads[14].C assertion error

2024-12-10 Thread ewlu at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117991 Bug ID: 117991 Summary: [15] RISC-V: g++/template/builtin-speculation-overloads[14].C assertion error Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug target/117722] RISC-V: Failed to vectorize x264_pixel_sad_4x4

2024-12-10 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117722 --- Comment #17 from Li Pan --- (In reply to Vineet Gupta from comment #14) > (In reply to Li Pan from comment #7) > > Created attachment 59661 [details] > > with usad pattern > > Can you please post the patch, lest we duplicate your effort. >

[Bug target/117974] RISC-V: VSETVL hoisting across branch

2024-12-10 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117974 --- Comment #6 from Vineet Gupta --- (In reply to Jeffrey A. Law from comment #5) > What's starting to rattle around in my brain is the for a loop, if the count > is unknown, then we probably don't want to unroll as that's much more likely > to

[Bug target/117722] RISC-V: Failed to vectorize x264_pixel_sad_4x4

2024-12-10 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117722 --- Comment #16 from Vineet Gupta --- (In reply to Robin Dapp from comment #15) > (In reply to Vineet Gupta from comment #14) > > @Robin, it seems the current codegen generates 2 widening ops, which might > > not be as efficient. We have done s

[Bug libfortran/117820] Formatted output gives wrong result.

2024-12-10 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117820 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/117765] Impure function within a BLOCK construct within a DO CONCURRENT

2024-12-10 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117765 Jerry DeLisle changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/117993] [15 regression] this->x is being rejected in a nested template class with a base of class of the outer templated class

2024-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117993 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > I suspect for some reason we think the current instantiation does not have a > dependent base for some reason. That is any_dependent_bases_p is returning false

[Bug c++/117993] [15 regression] inherited variables and functions not found in nested class

2024-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117993 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Confirmed. Fails with 20240727 but worked with 20240710 . I suspect r15-2117-g313afcfdabeab3 (which is in the time frame). ``` and qualified look

[Bug c++/117993] [15 regression] inherited variables and functions not found in nested class

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

[Bug rtl-optimization/117964] duplicate computed gotos will happily duplicate blocks with 9189 successors

2024-12-10 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117964 --- Comment #7 from Segher Boessenkool --- When maybe_duplicate_computed_goto is asked to duplicate a block with 9189 successors, it damn well should! If that is a bad idea for the case at hand, just do not call maybe_duplicate_computed_goto on

[Bug c++/117983] New: [13.2 regression] -Wstringop-overflow false positive for __builtin_memmove from vector::insert

2024-12-10 Thread gasper.azman at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117983 Bug ID: 117983 Summary: [13.2 regression] -Wstringop-overflow false positive for __builtin_memmove from vector::insert Product: gcc Version: 13.2.1 Status: UNCONFIRMED

[Bug target/117978] Optimise 128-bit-predicated SVE loads to Advanced SIMD LDRs

2024-12-10 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117978 ktkachov at gcc dot gnu.org changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org

[Bug tree-optimization/117965] phiprop fails in some cases

2024-12-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117965 --- Comment #12 from Richard Biener --- In fact I wonder how the code would support any case where the VUSE on the later load isn't the same as the VUSE on the first load.

[Bug c++/103827] function which takes an argument via (hidden) reference should assume the argument does not escape or is only read from

2024-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103827 --- Comment #15 from Jason Merrill --- (In reply to Jason Merrill from comment #14) > Note that this is the same for non-parameter local variables Just want to emphasize this point: this property is in no way specific to parameters, it applies

[Bug target/117970] [15 regression] RISC-V: xtreme-header failed to read compiled module: Bad file data

2024-12-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117970 Richard Biener changed: What|Removed |Added Target||riscv Target Milestone|---

[Bug tree-optimization/117973] [15 Regression] Dead Code Elimination Regression since r15-5646-gd1cf0d7a0f27fd for non-LOGICAL_OP_NON_SHORT_CIRCUIT targets

2024-12-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117973 Richard Biener changed: What|Removed |Added Target Milestone|--- |15.0

[Bug c++/117980] [15 Regression] ICE in in cxx_eval_outermost_constant_expr, at cp/constexpr.cc:8950 on nix-2.25.2 since r15-6052-g12de1942a0a673

2024-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117980 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug testsuite/117961] x86 testsuite: scan-assembler[-not] is bogus for inline asm

2024-12-10 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117961 --- Comment #8 from Georg-Johann Lay --- (In reply to ak from comment #7) > i suppose scan-assembler could just ignore lines starting with # I don't think that's the correct solution. Better ignore lines with ASM_COMMENT_START, which may or ma

[Bug c++/117980] [15 Regression] ICE in in cxx_eval_outermost_constant_expr, at cp/constexpr.cc:8950 on nix-2.25.2 since r15-6052-g12de1942a0a673

2024-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117980 --- Comment #5 from Jonathan Wakely --- Testing with RUNTESTFLAGS=--target_board=unix/-D_GLIBCXX_DEBUG shows some new fails due to this ICE: FAIL: 25_algorithms/lexicographical_compare/95578.cc -std=gnu++20 (test for excess errors) FAIL: 25_al

[Bug c++/103827] function which takes an argument via (hidden) reference should assume the argument does not escape or is only read from

2024-12-10 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103827 --- Comment #16 from Jan Hubicka --- > > Note that this is the same for non-parameter local variables > > Just want to emphasize this point: this property is in no way specific to > parameters, it applies to any object created as const. If som

[Bug c++/117985] [12/13/14/15 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.cc:3308

2024-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117985 Marek Polacek changed: What|Removed |Added Keywords|needs-reduction | --- Comment #2 from Marek Polacek ---

[Bug ipa/86590] Codegen is poor when passing std::string by value with _GLIBCXX_EXTERN_TEMPLATE undefined

2024-12-10 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590 --- Comment #40 from Jan Hubicka --- As discussed with Jason, problem with _M_create not seen by middle-end is actually due to C++ standard. Explicit instantiations prevents implicit ones for non-inline functions, see discussion in PR39242. With

[Bug libstdc++/80331] unused const std::string not optimized away

2024-12-10 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80331 --- Comment #13 from Jan Hubicka --- As discussed with Jason, problem with _M_create not seen by middle-end is actually due to C++ standard. Explicit instantiations prevents implicit ones for non-inline functions, see discussion in PR39242. With

[Bug tree-optimization/117875] [15 Regression] 28% regression for 456.hmmer on Zen4 with -Ofast -march=native

2024-12-10 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117875 --- Comment #12 from Jan Hubicka --- I tried final_value_replacement_loop on simplified testcase where second loop has known number of iterations: void foo(int *a, int *b, int n) { if (n > 3 && n < 10) for (int i = 0; i

[Bug target/117675] [14/15 regression] ARM Cortex 7-A ldrd register overlap

2024-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117675 --- Comment #5 from GCC Commits --- The master branch has been updated by Wilco Dijkstra : https://gcc.gnu.org/g:21fbfae2e55e1a153820acc6fbd922e66f67e65b commit r15-6088-g21fbfae2e55e1a153820acc6fbd922e66f67e65b Author: Wilco Dijkstra Date:

[Bug c++/117985] ICE in gimplify_var_or_parm_decl, at gimplify.cc:3308

2024-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117985 Marek Polacek changed: What|Removed |Added Target Milestone|--- |12.5 CC|

[Bug c++/117986] New: templated auto parameter with lambda as default value can result in duplicate symbols

2024-12-10 Thread emilia144 at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117986 Bug ID: 117986 Summary: templated auto parameter with lambda as default value can result in duplicate symbols Product: gcc Version: 11.4.0 Status: UNCONFIRMED

[Bug testsuite/117961] x86 testsuite: scan-assembler[-not] is bogus for inline asm

2024-12-10 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117961 ak at gcc dot gnu.org changed: What|Removed |Added CC||ak at gcc dot gnu.org --- Commen

[Bug libstdc++/88545] std::find compile to memchr in trivial random access cases (patch)

2024-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88545 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c/117981] -Wc11-c23-compat does not warn for bool, false and true

2024-12-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117981 --- Comment #2 from Joseph S. Myers --- The use of standard versions in the option names is deliberate. An option to warn about any version incompatibilities would become like -Wtraditional, less and less useful over time. If your code is known

[Bug c/117981] -Wc11-c23-compat does not warn for bool, false and true

2024-12-10 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117981 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #3 fr

[Bug c++/103827] function which takes an argument via (hidden) reference should assume the argument does not escape or is only read from

2024-12-10 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103827 --- Comment #11 from Jan Hubicka --- I see, I misread Jonathan's answer. If const is relevant only on definition, what about this one: #include struct foo { int a; void bar() const; ~foo() { if (a != 42) printf ("optimize me

[Bug libstdc++/80331] unused const std::string not optimized away

2024-12-10 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80331 --- Comment #14 from Jan Hubicka --- Declaring _S_create and _M_create inline indeed helps a little: diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h index 17b973c8b45..d73a61abe5b 100644 --- a/lib

[Bug rtl-optimization/117946] ICE: maximum number of generated reload insns per insn achieved (90) with -O -favoid-store-forwarding -mavx10.1 -mprefer-avx128 --param=store-forwarding-max-distance=128

2024-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117946 --- Comment #12 from GCC Commits --- The master branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:6fc3da8fa2af1d4ee154ea803636eabde358b553 commit r15-6091-g6fc3da8fa2af1d4ee154ea803636eabde358b553 Author: Vladimir N. Makarov

[Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066

2024-12-10 Thread heiko at hexco dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82469 --- Comment #6 from Heiko Eißfeldt --- Still ICEs on ARM64 11.1.0 - trunk. https://godbolt.org/z/bKEeqz613

[Bug tree-optimization/117965] phiprop fails in some cases

2024-12-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117965 --- Comment #9 from Richard Biener --- (In reply to Andrew Pinski from comment #8) > I am suspecting this comes from a benchmark, do you have the name of the > benchmark? Nope, it got reported to me with just exactly this testcase ...

[Bug rtl-optimization/117964] duplicate computed gotos will happily duplicate blocks with 9189 successors

2024-12-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117964 --- Comment #6 from Richard Biener --- In principle I'd place the duplication at a point in the pass pipeline where we do _not_ need the outgoing edges at all (we're already adding a BARRIER!). Which likely means no accurate dataflow. Possibly

[Bug testsuite/117961] x86 testsuite: scan-assembler[-not] is bogus for inline asm

2024-12-10 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117961 --- Comment #6 from Georg-Johann Lay --- So how do you get the absolute path into the assembly? Via .file there is the name of the test case, but as far as I can see, .file doesn't show the whole absolute path to the test case.

[Bug c++/117788] [C++26] P2865R5 - Removing deprecated array comparisons

2024-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117788 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:c628def52c87b40b6270618252488bcd731e1843 commit r15-6083-gc628def52c87b40b6270618252488bcd731e1843 Author: Marek Polacek Date: We

[Bug tree-optimization/117973] [15 Regression] Dead Code Elimination Regression since r15-5646-gd1cf0d7a0f27fd for non-LOGICAL_OP_NON_SHORT_CIRCUIT targets

2024-12-10 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117973 --- Comment #2 from Hans-Peter Nilsson --- I forgot to mark r15-6081-g0703e7491e06c0 with this PR: it's an xfailed test that compiles gcc.dg/tree-ssa/pr111456-1.c with --param logical-op-non-short-circuit=0.

[Bug c++/117788] [C++26] P2865R5 - Removing deprecated array comparisons

2024-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117788 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/110338] Implement C++26 language features

2024-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110338 Bug 110338 depends on bug 117788, which changed state. Bug 117788 Summary: [C++26] P2865R5 - Removing deprecated array comparisons https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117788 What|Removed |Added ---

[Bug c++/103827] function which takes an argument via (hidden) reference should assume the argument does not escape or is only read from

2024-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103827 Jason Merrill changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug rtl-optimization/117248] gcc/libgcc/libgcc2.h:232:25: internal compiler error: Arithmetic exception

2024-12-10 Thread vmakarov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117248 --- Comment #18 from Vladimir Makarov --- (In reply to John David Anglin from comment #16) > Things are improved but a similar error occurs in the second umod:SI > call in /testsuite/gcc.c-torture/execute/arith-rand-ll.c: > > > (insn 341 339 6

[Bug tree-optimization/117965] phiprop fails in some cases

2024-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117965 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug rtl-optimization/117248] gcc/libgcc/libgcc2.h:232:25: internal compiler error: Arithmetic exception

2024-12-10 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117248 --- Comment #19 from John David Anglin --- Created attachment 59828 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59828&action=edit Preprocessed source for arith-rand-ll.c

[Bug fortran/117643] F_C_STRING from F23 is missing

2024-12-10 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117643 --- Comment #3 from kargls at comcast dot net --- Created attachment 59827 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59827&action=edit Testcase for f_c_string The attached testcase has a number of tests currently commented out. Those

[Bug target/117970] [15 regression] RISC-V: xtreme-header failed to read compiled module: Bad file data

2024-12-10 Thread ewlu at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117970 --- Comment #4 from Edwin Lu --- (In reply to Lewis Hyatt from comment #2) > Thanks, I will see what I can find. Did you, by any chance, run the tests > before/after r15-6016 in the same build directory? I think this error would > make sense to

[Bug c++/66892] [12/13/14/15 Regression] [DR355] Fix of core language defect 355 has status c++11 but is not implemented yet

2024-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66892 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |3y3p4tch at protonmail dot com

[Bug c++/103827] function which takes an argument via (hidden) reference should assume the argument does not escape or is only read from

2024-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103827 --- Comment #12 from Jonathan Wakely --- Yes, that object is defined const so can't be changed. But is this something we care about? Is it important to apply this optimization to noinline functions?

  1   2   >