[Bug libstdc++/121174] std::dextents is not exported from std module

2025-07-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Assignee|unassigned at

[Bug libstdc++/121174] std::dextents is not exported from std module

2025-07-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174 --- Comment #7 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:7083aeaef5b6d8be1ae419b834e8e56d90026ace commit r16-2367-g7083aeaef5b6d8be1ae419b834e8e56d90026ace Author: Jakub Jelinek Date: S

[Bug c/121181] ICE on x86_64-linux-gnu: in set_fini_priority, at symtab.cc:1903 with destructor

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121181 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c/121181] New: ICE on x86_64-linux-gnu: in set_fini_priority, at symtab.cc:1903 with destructor

2025-07-19 Thread jiangchangwu at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121181 Bug ID: 121181 Summary: ICE on x86_64-linux-gnu: in set_fini_priority, at symtab.cc:1903 with destructor Product: gcc Version: 16.0 Status: UNCONFIRMED Severit

[Bug tree-optimization/83247] simplify (int)a_long < 0 when we know a_long fits in int

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83247 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > (In reply to Andrew Pinski from comment #5) > > Some failures ... > > > > gnat.dg/opt86a.adb: pattern found 1 times > > FAIL: gnat.dg/opt86a.adb scan-tree-dump-t

[Bug tree-optimization/120867] [metabug] AutoFDO issues

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120867 Bug 120867 depends on bug 120859, which changed state. Bug 120859 Summary: FAIL: gcc.dg/tree-prof/afdo-crossmodule-1b.c compilation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120859 What|Removed |Added --

[Bug testsuite/120859] FAIL: gcc.dg/tree-prof/afdo-crossmodule-1b.c compilation

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

[Bug testsuite/120859] FAIL: gcc.dg/tree-prof/afdo-crossmodule-1b.c compilation

2025-07-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120859 --- Comment #6 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:9de2fbf46cdfb9f0ed8c1fb7e7524443e975ff29 commit r16-2366-g9de2fbf46cdfb9f0ed8c1fb7e7524443e975ff29 Author: Andrew Pinski Date: Sa

[Bug c++/120555] [15/16 Regression] Use of auto func before deduction of auto

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120555 Andrew Pinski changed: What|Removed |Added CC||terryinzaghi at 163 dot com --- Comment

[Bug c++/121172] [15 Regression] error: use of 'static constexpr method...' before deduction of 'auto' WHEN upgrade to 15.1.0 : different writing order have different impact

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121172 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c++/121172] [15/16 Regression] error: use of 'static constexpr method...' before deduction of 'auto' WHEN upgrade to 15.1.0 : different writing order have different impact

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121172 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.2 Keywords|

[Bug tree-optimization/80635] [10 regression] std::optional and bogus -Wmaybe-uninitialized warning

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635 --- Comment #72 from Andrew Pinski --- (In reply to Milian Wolff from comment #69) > Here's another test case that still emits warnings in latest GCC trunk as > available through godbolt: https://godbolt.org/z/cWaca3s5s I think this is PR 116090

[Bug libstdc++/121180] std::any allows for creating multiple empty objects of the same type at the same address

2025-07-19 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121180 --- Comment #4 from Halalaluyafail3 --- (In reply to Andrew Pinski from comment #2) > So is MSVC. So maybe this is a defect in the standard ... I can make bug reports for libc++ and MSVC's STL too. If this is a defect, what would make std::any

[Bug libstdc++/121180] std::any allows for creating multiple empty objects of the same type at the same address

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121180 --- Comment #3 from Andrew Pinski --- Actually I think this is valid since std::any is in the tail padding of the base class of J here.

[Bug libstdc++/121180] std::any allows for creating multiple empty objects of the same type at the same address

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121180 --- Comment #2 from Andrew Pinski --- So is MSVC. So maybe this is a defect in the standard ...

[Bug libstdc++/121180] std::any allows for creating multiple empty objects of the same type at the same address

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121180 --- Comment #1 from Andrew Pinski --- LLVM's libc++ has the same behavior here ...

i saw you online. why lie? – kelly

2025-07-19 Thread Vernita Stawasz via Gcc-bugs
you make me feel insane – rebecca https://docs.google.com/presentation/d/1h0mw6RJX9IODRhL5T8aMcROZDTQY1bTQeqAEgqnd0dM/edit?usp=sharing#TkwAzO8

i just want closure – gabrielle

2025-07-19 Thread Terina Chenet via Gcc-bugs
are you serious right now?? – lauren https://docs.google.com/presentation/d/1_mSFedxtPqDadkvUww75hdUF4cyCZP_vJlVYQEtwTZo/edit?usp=sharing#PbCWtqwO

[Bug debug/121157] -gcodeview does not work with Ada

2025-07-19 Thread andrew.teylu at vector dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157 --- Comment #10 from Andrew Teylu --- Btw, it isn't that it _never_ works: ``` package LOCAL_IO is function GET_NEXT return Integer; end LOCAL_IO; package body LOCAL_IO is type TEXT_TYPE (LENGTH : Positive := 1) is record null; e

[Bug libstdc++/121180] New: std::any allows for creating multiple empty objects of the same type at the same address

2025-07-19 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121180 Bug ID: 121180 Summary: std::any allows for creating multiple empty objects of the same type at the same address Product: gcc Version: 16.0 Status: UNCONFIRMED

[Bug middle-end/109267] generates empty functions with .cfi_startproc/.cfi_endproc that conflict with other functions

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109267 --- Comment #12 from Andrew Pinski --- Update patch: https://gcc.gnu.org/pipermail/gcc-patches/2025-July/690018.html

[Bug tree-optimization/121173] false-positive Wmaybe-uninitialized in std::optional::reset()

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121173 --- Comment #2 from Andrew Pinski --- I am still trying to figure out how to reproduce this since using he trunk on x86_64-linux-gnu does not produce a warning and using GCC 10 from ubuntu 2204 also does not produce a warning.

[Bug tree-optimization/121177] Possibly missed allocation elision

2025-07-19 Thread rohan at rohanlean dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121177 --- Comment #2 from Rohan Lean --- I have crossposted to the LLVM bugtracker at https://github.com/llvm/llvm-project/issues/149661, because clang also does no elisions here.

[Bug libgomp/121178] gcc openacc: libgomp: struct not mapped for detach operation if the borders are given on delete, nvc++ compiles correctly

2025-07-19 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121178 --- Comment #2 from Benjamin Schulz --- oh well sorry, in the last snipped that line #pragma omp target enter data map(to:t.data[0:20]) should not be there... it should be like: mytensor t; int strides[2]={1,2}; int extents[2]

[Bug libgomp/121178] gcc openacc: libgomp: struct not mapped for detach operation if the borders are given on delete, nvc++ compiles correctly

2025-07-19 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121178 --- Comment #1 from Benjamin Schulz --- and something else: Assume I want to create a struct with a temporary matrix only on gpu, with known extents, known strides, and just allocated data, that is not on the host. The mapping macros require t

[Bug c++/121179] New: When importing std, chrono calculation will cause a compilation error

2025-07-19 Thread printfne at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121179 Bug ID: 121179 Summary: When importing std, chrono calculation will cause a compilation error Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/109267] generates empty functions with .cfi_startproc/.cfi_endproc that conflict with other functions

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109267 --- Comment #11 from Andrew Pinski --- ``` proc check_effective_target_trap { } { return [check_no_messages_and_pattern trap "!\\(call" rtl-expand { void foo () { return __builtin_trap (); } } "" ]

[Bug ada/121134] incorrectly specified array aggregate in protected object causes bug box

2025-07-19 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121134 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug debug/121157] internal error on Ada's unconstrained array types with -gcodeview

2025-07-19 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157 --- Comment #8 from Eric Botcazou --- *** Bug 121163 has been marked as a duplicate of this bug. ***

[Bug debug/121157] internal error on Ada's unconstrained array types with -gcodeview

2025-07-19 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157 --- Comment #9 from Eric Botcazou --- *** Bug 121162 has been marked as a duplicate of this bug. ***

[Bug debug/121162] GNAT hang with `-gcodeview -fgnat-encodings=all` (but not just with `-gcodeview`)

2025-07-19 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121162 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org

[Bug ada/121163] GNAT hang with `-g -gcodeview` (but not with just `-g`)

2025-07-19 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121163 Eric Botcazou changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug target/121124] TI PRU target doesn't seem to use constant table if address has bit31 set

2025-07-19 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121124 Dimitar Dimitrov changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/121124] TI PRU target doesn't seem to use constant table if address has bit31 set

2025-07-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121124 --- Comment #2 from GCC Commits --- The master branch has been updated by Dimitar Dimitrov : https://gcc.gnu.org/g:e42799be2bb2966487c27897294426a03a99f56d commit r16-2362-ge42799be2bb2966487c27897294426a03a99f56d Author: Dimitar Dimitrov Dat

[Bug middle-end/109267] generates empty functions with .cfi_startproc/.cfi_endproc that conflict with other functions

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

[Bug libgomp/121178] New: gcc openacc: libgomp: struct not mapped for detach operation if the borders are given on delete, nvc++ compiles correctly

2025-07-19 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121178 Bug ID: 121178 Summary: gcc openacc: libgomp: struct not mapped for detach operation if the borders are given on delete, nvc++ compiles correctly Product: gcc Ve

[Bug target/119100] RISC-V: missed opportunities for vector-scalar instructions

2025-07-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119100 --- Comment #13 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:a0e28fd03f65bb4c76f8eb5ce1e5d56b76897199 commit r16-2361-ga0e28fd03f65bb4c76f8eb5ce1e5d56b76897199 Author: Paul-Antoine Arras Date:

[Bug libstdc++/121174] std::dextents is not exported from std module

2025-07-19 Thread printfne at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174 --- Comment #6 from printfne at gmail dot com --- (In reply to Jakub Jelinek from comment #5) > https://gcc.gnu.org/pipermail/gcc-patches/2025-July/690005.html Ok. Thank you very much. I'm looking forward to your patch being merged soon(In reply

[Bug c++/121171] Improve diagnostic for parenthesized bit-field names

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

[Bug tree-optimization/121176] Missed optimization: vectorization + inline

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

[Bug tree-optimization/121177] Possibly missed allocation elision

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

[Bug libstdc++/121174] std::dextents is not exported from std module

2025-07-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug c++/121177] New: Possibly missed allocation elision

2025-07-19 Thread rohan at rohanlean dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121177 Bug ID: 121177 Summary: Possibly missed allocation elision Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug libstdc++/121174] std::dextents is not exported from std module

2025-07-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174 --- Comment #4 from Jakub Jelinek --- Given that #include int main() { int v[] = {1, 2, 3, 4, 5, 6}; std::mdspan> view{v, 2, 3}; return 0; } compiles, I think more likely libstdc++-v3/src/c++23/std.cc.in needs the // #if __glibc

[Bug libstdc++/121174] std::dextents was not exported from std module

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Summary|std::dextents was

[Bug libstdc++/121174] std::dextents was not found, which prevented std::mdspan from specifying dimensions at runtime

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174 --- Comment #2 from Andrew Pinski --- >import std; Oh wait, maybe it is because mdspan is not included in bits/std.cc yet.

[Bug libstdc++/121174] std::dextents was not found, which prevented std::mdspan from specifying dimensions at runtime

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174 --- Comment #1 from Andrew Pinski --- Most likely this feature of c++26 has not been implemented yet ...

[Bug c++/121176] New: Missed optimization: mixed alignas + vectorization + inline

2025-07-19 Thread rockeet at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121176 Bug ID: 121176 Summary: Missed optimization: mixed alignas + vectorization + inline Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/121175] New: [modules] ICE with explicit specialization of template class (internal compiler error: in tree_node, at cp/module.cc:9975)

2025-07-19 Thread omerfaruko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121175 Bug ID: 121175 Summary: [modules] ICE with explicit specialization of template class (internal compiler error: in tree_node, at cp/module.cc:9975) Product: gcc V

[Bug c++/121174] New: std::dextents was not found, which prevented std::mdspan from specifying dimensions at runtime

2025-07-19 Thread printfne at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121174 Bug ID: 121174 Summary: std::dextents was not found, which prevented std::mdspan from specifying dimensions at runtime Product: gcc Version: 16.0 Status: UNCONFIRMED

[Bug c/120753] is_device_ptr does not compile if given a pointer which is a member of a struct, i.e. is_device_ptr(u.ptr), where mystruct u; and struct mystruct{double *ptr;int something;}; will fail

2025-07-19 Thread schulz.benjamin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120753 --- Comment #17 from Benjamin Schulz --- Ah i forgot that mapping macro... So that is the correct code mytensor t; t.data=(double*)omp_target_alloc(sizeof(double)*20,omp_get_default_device()); t.strides=(int*)omp_target_alloc(sizeof(

[Bug tree-optimization/121173] false-positive Wmaybe-uninitialized in std::optional::reset()

2025-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121173 --- Comment #1 from Andrew Pinski --- Might be related to pr 116090. Will try to reproduce tomorrow.

[Bug tree-optimization/121173] New: false-positive Wmaybe-uninitialized in std::optional::reset()

2025-07-19 Thread manx-bugzilla at problemloesungsmaschine dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121173 Bug ID: 121173 Summary: false-positive Wmaybe-uninitialized in std::optional::reset() Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal