[Bug c++/115905] [coroutines] Wrong behavior of await_suspend()

2024-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115905 --- Comment #4 from GCC Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:368ba7aed46d57d093c0180baae4dc0e0ba468b6 commit r15-3649-g368ba7aed46d57d093c0180baae4dc0e0ba468b6 Author: Iain Sandoe Date: Fri

[Bug tree-optimization/116699] factor_out_conditional_operation does not ignore PREDICT/NOP sometimes

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116699 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/116699] factor_out_conditional_operation does not ignore PREDICT/NOP sometimes

2024-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116699 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:6e4244e8ceac939fe8a24470b4ff31c82e8bff21 commit r15-3648-g6e4244e8ceac939fe8a24470b4ff31c82e8bff21 Author: Andrew Pinski Date: Fr

[Bug c++/116676] [12/13/14/15 Regression] ICE with structured bindings and std::pair with references

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116676 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-09-14 Known to work|

[Bug c++/116676] GCC crashes on incorrect code with -std=c++23 in 'constexpr' expansion of 'std::get<0, const int&, details::spin_sync >(std::)'

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116676 Andrew Pinski changed: What|Removed |Added Attachment #59113|0 |1 is obsolete|

[Bug c++/116676] GCC crashes on incorrect code with -std=c++23 in 'constexpr' expansion of 'std::get<0, const int&, details::spin_sync >(std::)'

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116676 --- Comment #4 from Andrew Pinski --- Created attachment 59113 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59113&action=edit Reduced testcase

[Bug c++/116676] GCC crashes on incorrect code with -std=c++23 in 'constexpr' expansion of 'std::get<0, const int&, details::spin_sync >(std::)'

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

[Bug c++/116676] GCC crashes on incorrect code with -std=c++23 in 'constexpr' expansion of 'std::get<0, const int&, details::spin_sync >(std::)'

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116676 --- Comment #2 from Andrew Pinski --- Slightly reduced: ``` #include namespace std { auto [fet1, err1] = std::pair { 1, 1 }; int t; } ``` and yes the namespace here needs to be std.

[Bug c++/116676] GCC crashes on incorrect code with -std=c++23 in 'constexpr' expansion of 'std::get<0, const int&, details::spin_sync >(std::)'

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116676 Andrew Pinski changed: What|Removed |Added Keywords|ice-on-invalid-code |ice-on-valid-code --- Comment #1 from A

[Bug c++/116714] [14/15 Regression] Inconsistent lambda type inference in function template instance

2024-09-14 Thread ted at lyncon dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116714 --- Comment #6 from Ted Lyngmo --- Darn... :-) Glad you're on it!

[Bug c++/116714] [14/15 Regression] Inconsistent lambda type inference in function template instance

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116714 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection --- Comment #5 from And

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

2024-09-14 Thread psmith at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109740 Paul Smith changed: What|Removed |Added Version|13.1.0 |14.2.0 --- Comment #6 from Paul Smith ---

[Bug testsuite/116716] gcc.c-torture/execute/pr52286.c seems broken on 16-bit targets

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

[Bug testsuite/116716] gcc.c-torture/execute/pr52286.c seems broken on 16-bit targets

2024-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116716 --- Comment #2 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:1dd6dd18783c3a7411b494f8b9d911cea784a270 commit r15-3644-g1dd6dd18783c3a7411b494f8b9d911cea784a270 Author: Andrew Pinski Date: Sa

[Bug testsuite/116716] gcc.c-torture/execute/pr52286.c seems broken on 16-bit targets

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116716 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug fortran/95397] [Fortran/OpenACC] Wrong results with 'loop vector' inside 'routine'

2024-09-14 Thread chilikin.k at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95397 --- Comment #6 from Kirill Chilikin --- Created attachment 59112 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59112&action=edit Test case (works)

[Bug fortran/95397] [Fortran/OpenACC] Wrong results with 'loop vector' inside 'routine'

2024-09-14 Thread chilikin.k at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95397 --- Comment #5 from Kirill Chilikin --- Created attachment 59111 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59111&action=edit Test case

[Bug fortran/95397] [Fortran/OpenACC] Wrong results with 'loop vector' inside 'routine'

2024-09-14 Thread chilikin.k at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95397 Kirill Chilikin changed: What|Removed |Added CC||chilikin.k at gmail dot com --- Commen

[Bug testsuite/116716] New: gcc.c-torture/execute/pr52286.c seems broken on 16-bit targets

2024-09-14 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116716 Bug ID: 116716 Summary: gcc.c-torture/execute/pr52286.c seems broken on 16-bit targets Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug c++/114858] [12/13/14/15 regression] Compilation Hang and Excessive RAM Consumption in GCC with invalid input since r0-128725

2024-09-14 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114858 Simon Martin changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |simartin at gcc dot gnu.org

[Bug c++/116714] [14/15 Regression] Inconsistent lambda type inference in function template instance

2024-09-14 Thread ted at lyncon dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116714 --- Comment #4 from Ted Lyngmo --- Andrew: The reduced example you provided is not interpreted the same way as what I used when I wrote the report. I think they fail for different reasons. Possibly at different stages. I went through the languag

[Bug c++/116714] [14/15 Regression] Inconsistent lambda type inference in function template instance

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

[Bug c++/116714] [14/15 Regression] Inconsistent lambda type inference in function template instance

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116714 --- Comment #2 from Andrew Pinski --- Created attachment 59110 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59110&action=edit Reduced without headers

[Bug c++/116714] [14 Regression] Inconsistent lambda type inference in function template instance

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116714 Andrew Pinski changed: What|Removed |Added URL|https://stackoverflow.com/q | |/78985036/7582247

[Bug c/87588] gcc does not warn about unused variable which references to itself

2024-09-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87588 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org --- Comment

[Bug c/87588] gcc does not warn about unused variable which references to itself

2024-09-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87588 --- Comment #2 from David Malcolm --- FWIW here's the reproducer in Compiler Explorer: https://godbolt.org/z/54KzMcasP

[Bug target/116715] RISC-V: Miscompile at -O2 with -march=rv64id_zbs

2024-09-14 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116715 --- Comment #1 from Patrick O'Neill --- Slightly improved testcase: int a, b; int d; long f = 695372830942; int main() { d = 0; for (; d < 1; d = 1) --f; d |= b = f; long h = d; a = h >> 40; __builtin_printf("%lX\n", a); } > /sc

[Bug c/87588] gcc does not warn about unused about unused variable which references to itself

2024-09-14 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87588 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #1

[Bug target/116715] New: RISC-V: Miscompile at -O2 with -march=rv64id_zbs

2024-09-14 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116715 Bug ID: 116715 Summary: RISC-V: Miscompile at -O2 with -march=rv64id_zbs Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/116681] [12/13/14/15 Regression] ICE: in start, at timevar.cc:491 with -ftime-report -std=c++20

2024-09-14 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116681 Simon Martin changed: What|Removed |Added Target Milestone|12.5|15.0 --- Comment #7 from Simon Martin -

[Bug c++/116681] [12/13/14/15 Regression] ICE: in start, at timevar.cc:491 with -ftime-report -std=c++20

2024-09-14 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116681 --- Comment #6 from Zdenek Sojka --- (In reply to Simon Martin from comment #5) > Fixed on trunk. Thank you for fixing this. The "Target Milestone: 12.5" does not match reality, it's not fixed for 12.5.

[Bug c++/67491] [meta-bug] concepts issues

2024-09-14 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 116681, which changed state. Bug 116681 Summary: [12/13/14/15 Regression] ICE: in start, at timevar.cc:491 with -ftime-report -std=c++20 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116681 What|Removed

[Bug c++/116681] [12/13/14/15 Regression] ICE: in start, at timevar.cc:491 with -ftime-report -std=c++20

2024-09-14 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116681 Simon Martin changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/116681] [12/13/14/15 Regression] ICE: in start, at timevar.cc:491 with -ftime-report -std=c++20

2024-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116681 --- Comment #4 from GCC Commits --- The master branch has been updated by Simon Martin : https://gcc.gnu.org/g:005f7176e0f457a1e1a7398ddcb4a4972da28c62 commit r15-3642-g005f7176e0f457a1e1a7398ddcb4a4972da28c62 Author: Simon Martin Date: Fri

[Bug lto/116344] Wlto-type-mismatch and Wodr should show what TUs mismatched

2024-09-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116344 Arsen Arsenović changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug lto/94150] Improve LTO diagnosis for LTO triggered warnings/error: print source.o or source.a(lib.o) when printing location

2024-09-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94150 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment #

[Bug c++/116714] New: [14 Regression] Inconsistent lambda type inference in function template instance

2024-09-14 Thread ted at lyncon dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116714 Bug ID: 116714 Summary: [14 Regression] Inconsistent lambda type inference in function template instance Product: gcc Version: 14.0 Status: UNCONFIRMED Severit

[Bug tree-optimization/116556] __builtin_object_size does not handle `ptr + (PHI<4,8>)`, only `PHI`

2024-09-14 Thread siddhesh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116556 --- Comment #2 from Siddhesh Poyarekar --- The problem here is that the expression generated is: # t_1 = PHI <8(2), 4(3)> p_6 = buf2_4 + t_1; where tree-object-size then bails out because it can only handle (PTR or ADDR_EXPR) + INTEGER_CST

[Bug analyzer/111567] RFE: support __attribute__((counted_by)) in -fanalyzer

2024-09-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111567 --- Comment #4 from David Malcolm --- Perhaps a lot of this could be handled by teaching the analyzer about the .ACCESS_WITH_SIZE internal func (that wraps an access, annotating it with size info)

[Bug analyzer/111567] RFE: support __attribute__((counted_by)) in -fanalyzer

2024-09-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111567 --- Comment #3 from David Malcolm --- FWIW I posted some ideas about this here: https://gcc.gnu.org/pipermail/gcc-patches/2024-June/653719.html

[Bug analyzer/116060] -fanalyzer -fdiagnostics-text-art-charset=unicode replaces typedef'ed type with "int" in some cases

2024-09-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116060 --- Comment #1 from David Malcolm --- https://godbolt.org/z/jrqEKfsd1

[Bug target/116713] New: [SH] __builtin_prefetch can't be used for store queues

2024-09-14 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 Bug ID: 116713 Summary: [SH] __builtin_prefetch can't be used for store queues Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Co

[Bug lto/116344] Wlto-type-mismatch and Wodr should show what TUs mismatched

2024-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116344 --- Comment #2 from Andrew Pinski --- Hmm, isn't this a dup of bug 94150 ?

[Bug lto/116712] New: -Wlto-type-mismatch should show how the types differ (just like -Wodr does)

2024-09-14 Thread brunopitrus at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116712 Bug ID: 116712 Summary: -Wlto-type-mismatch should show how the types differ (just like -Wodr does) Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: