[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2025-04-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #17 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:e6ae0de72ef696c4016cc66c53a4aa49a1e900a6 commit r16-55-ge6ae0de72ef696c4016cc66c53a4aa49a1e900a6 Author: Jason Merrill Date: Wed

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-21 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 cqwrteur changed: What|Removed |Added CC||unlvsur at live dot com --- Comment #16 from

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #14 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:82bb66730bc42b8694fdebef607ea6e49e8496bf commit r11-7740-g82bb66730bc42b8694fdebef607ea6e49e8496bf Author: Jakub Jelinek Date: F

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 Jakub Jelinek changed: What|Removed |Added Attachment #50331|0 |1 is obsolete|

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #12 from Jakub Jelinek --- Unfortunately the #c9 patch caused +FAIL: g++.dg/cpp1y/constexpr-82304.C -std=c++14 (test for errors, line 9) +FAIL: g++.dg/cpp1y/constexpr-82304.C -std=c++17 (test for errors, line 9) +FAIL: g++.dg/cpp1

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #11 from Nathan Sidwell --- gcc11-pr99456.patch looks good, can we add a scan-not for the _ZGV guard variables too? If the optimizer's turned on, I think __static_init... gets inlined into the global constructor, might be good to mak

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 Jakub Jelinek changed: What|Removed |Added Attachment #50330|0 |1 is obsolete|

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2021-03-08 Status|UNCONFIRME

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #8 from Jakub Jelinek --- I'm not misreading the testcase, I'm just reacting on the fact that my patch changed the behavior of it and looking into related issues when analyzing why. It is up to the compiler to decide if it can or can'

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #7 from Nathan Sidwell --- You're misreading this particular testcase. I don't believe it contains anything invalid -- the only constexpr is on: static constexpr unsigned &descRef = desc; (and I don't think it's necessary there, bu

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #6 from Jakub Jelinek --- Another thing is that perhaps we should be rejecting reinterpret_cast only in the pedantic constant expression evaluation mode, not when we allow extensions and fold as much as we can. So something like (inc

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #5 from Jakub Jelinek --- Created attachment 50330 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50330&action=edit gcc11-pr99456.patch On one side, we have still accepts-invalid issue, e.g. in your testcase: constexpr inline C

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #4 from Nathan Sidwell --- It's an ABI issue, because all compilers must agree on which parts of an inline object are dynamically initialized. (gcc-11 does not agree with gcc-10). consider: inline Type Var = Expr; That'll be emitt

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Priority|

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

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

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-07 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #2 from Nathan Sidwell --- Created attachment 50328 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50328&action=edit trunk output (unoptimized)

[Bug c++/99456] [11 regression] ABI breakage with some static initialization

2021-03-07 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456 --- Comment #1 from Nathan Sidwell --- Created attachment 50327 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50327&action=edit gcc-10 output (unoptimized)